|
template<std::size_t D = S, typename = std::enable_if_t<(D == S) && Column>> |
constexpr | operator BasicVector< T, D > () |
| Implicitly convert the column into a vector. More...
|
|
constexpr BasicVector< T, S > | ToVector () |
| Convert the row or column into a vector. More...
|
|
constexpr MatrixType | ToMatrix () |
| Convert the row or column into a matrix representing a row or column vector, respectively. More...
|
|
constexpr T | operator[] (std::size_t i) const |
| Get the specified entry in the row/column. More...
|
|
template<bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr T & | operator[] (std::size_t i) |
| Gets a mutable reference to specified entry in the row/column. More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator= (U val) |
| Sets all entries in the row/column to the specified constant. More...
|
|
template<typename U , std::size_t I, bool IsC, bool Col, bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator= (const MatrixVectorView< U, S, I, IsC, Col > &val) |
| Sets the entries in the row/column to the specified vector. More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator= (const BasicVector< U, S > &val) |
| Sets the entries in the row/column to the specified vector. More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator= (const BasicMatrix< U, S, 1 > &val) |
| Sets the entries in the row/column to the specified column vector (matrix) More...
|
|
template<typename U , bool Const = IsConst, std::size_t S1 = S, typename = std::enable_if_t<(S != 1) && (S1 == S) && (Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator= (const BasicMatrix< U, 1, S1 > &val) |
| Sets the entries in the row/column to the specified row vector (matrix) More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator+= (U val) |
| Sets all entries in the row/column to the specified constant. More...
|
|
template<typename U , std::size_t I, bool IsC, bool Col, bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator+= (const MatrixVectorView< U, S, I, IsC, Col > &val) |
| Sets the entries in the row/column to the specified vector. More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator+= (const BasicVector< U, S > &val) |
| Sets the entries in the row/column to the specified vector. More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator+= (const BasicMatrix< U, S, 1 > &val) |
| Sets the entries in the row/column to the specified column vector (matrix) More...
|
|
template<typename U , bool Const = IsConst, std::size_t S1 = S, typename = std::enable_if_t<(S != 1) && (S1 == S) && (Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator+= (const BasicMatrix< U, 1, S1 > &val) |
| Sets the entries in the row/column to the specified row vector (matrix) More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator-= (U val) |
| Sets all entries in the row/column to the specified constant. More...
|
|
template<typename U , std::size_t I, bool IsC, bool Col, bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator-= (const MatrixVectorView< U, S, I, IsC, Col > &val) |
| Sets the entries in the row/column to the specified vector. More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator-= (const BasicVector< U, S > &val) |
| Sets the entries in the row/column to the specified vector. More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator-= (const BasicMatrix< U, S, 1 > &val) |
| Sets the entries in the row/column to the specified column vector (matrix) More...
|
|
template<typename U , bool Const = IsConst, std::size_t S1 = S, typename = std::enable_if_t<(S != 1) && (S1 == S) && (Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator-= (const BasicMatrix< U, 1, S1 > &val) |
| Sets the entries in the row/column to the specified row vector (matrix) More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator*= (U val) |
| Sets all entries in the row/column to the specified constant. More...
|
|
template<typename U , bool Const = IsConst, typename = std::enable_if_t<(Const == IsConst) && !Const>> |
constexpr MatrixVectorView & | operator/= (U val) |
| Sets all entries in the row/column to the specified constant. More...
|
|
template<typename T, std::size_t S, std::size_t INC, bool IsConst, bool Column>
class ptems::MatrixVectorView< T, S, INC, IsConst, Column >
A "view" object for accessing matrix rows or columns.
- Warning
- This type is a "view", and as such is only valid to be used while the original Matrix is still active. Accessing entries in this view after the matrix is out of scope is undefined behaviour.
- Template Parameters
-
S | The size of the matrix row |
INC | The increment between entries in the view (1 for a row view, M for a column view) |
IsConst | true if the view is const; false otherwise |
Column | true if represents a column, false if represents a row |