File view_matrix_composite.hpp

template<typename FirstView, typename SecondView>
class CompositeMatrix : public Matrix, public CompositeView<FirstView, SecondView>
#include <view_matrix_composite.hpp>

A matrix that is backed two two-dimensional views.

Template Parameters:
  • FirstView – The type of the first view

  • SecondView – The type of the second view

Public Functions

inline CompositeMatrix(FirstView &&firstView, SecondView &&secondView, uint32 numRows, uint32 numCols)
Parameters:
  • firstView – The first view, the matrix should be backed by

  • secondView – The second view, the matrix shoul be backed by

  • numRows – The number of rows in the matrix

  • numCols – The number of columns in the matrix

inline CompositeMatrix(const CompositeMatrix<FirstView, SecondView> &other)
Parameters:

other – A reference to an object of type CompositeMatrix that should be copied

inline CompositeMatrix(CompositeMatrix<FirstView, SecondView> &&other)
Parameters:

other – A reference to an object of type CompositeMatrix that should be moved

inline virtual ~CompositeMatrix() override
inline void clear()

Sets all values stored in the view to zero.