![]() |
Blaze 3.9
|
Expression object for fixing the size of a sparse vector. More...
#include <SVecFixExpr.h>
Public Member Functions | |
SVecFixExpr (VT &sv) noexcept | |
Constructor for the SVecTransposer class. More... | |
template<typename Type > | |
SVecFixExpr & | operator= (initializer_list< Type > list) |
List assignment to all vector elements. More... | |
template<typename VT2 > | |
SVecFixExpr & | operator= (const Vector< VT2, TF > &rhs) |
Assignment operator for different vectors. More... | |
Private Attributes | |
VT & | sv_ |
The sparse vector operand. | |
Expression object for fixing the size of a sparse vector.
The SVecFixExpr class represents the compile time expression for fixing the size of sparse vectors.
|
inlineexplicitnoexcept |
Constructor for the SVecTransposer class.
sv | The sparse vector operand. |
|
inline |
Assignment operator for different vectors.
rhs | Vector to be copied. |
std::invalid_argument | Invalid assignment to fixed-size vector. |
This assignment operator offers the option to directly (copy) assign to all elements of the vector by means of a vector. In case the size of the given vector doesn't match the size of this vector, a std::invalid_argument exception is thrown.
|
inline |
List assignment to all vector elements.
list | The initializer list. |
std::invalid_argument | Invalid assignment to fixed-size vector. |
This assignment operator offers the option to directly (copy) assign to all elements of the vector by means of an initializer list. In case the size of the given initializer doesn't match the size of this vector, a std::invalid_argument exception is thrown.