Blaze 3.9
Public Member Functions | Private Attributes | List of all members
blaze::SVecFixExpr< VT, TF > Class Template Reference

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 >
SVecFixExproperator= (initializer_list< Type > list)
 List assignment to all vector elements. More...
 
template<typename VT2 >
SVecFixExproperator= (const Vector< VT2, TF > &rhs)
 Assignment operator for different vectors. More...
 

Private Attributes

VT & sv_
 The sparse vector operand.
 

Detailed Description

template<typename VT, bool TF>
class blaze::SVecFixExpr< VT, TF >

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.

Constructor & Destructor Documentation

◆ SVecFixExpr()

template<typename VT , bool TF>
blaze::SVecFixExpr< VT, TF >::SVecFixExpr ( VT &  sv)
inlineexplicitnoexcept

Constructor for the SVecTransposer class.

Parameters
svThe sparse vector operand.

Member Function Documentation

◆ operator=() [1/2]

template<typename VT , bool TF>
template<typename VT2 >
SVecFixExpr & blaze::SVecFixExpr< VT, TF >::operator= ( const Vector< VT2, TF > &  rhs)
inline

Assignment operator for different vectors.

Parameters
rhsVector to be copied.
Exceptions
std::invalid_argumentInvalid assignment to fixed-size vector.
Returns
Reference to the assigned 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.

◆ operator=() [2/2]

template<typename VT , bool TF>
template<typename Type >
SVecFixExpr & blaze::SVecFixExpr< VT, TF >::operator= ( initializer_list< Type >  list)
inline

List assignment to all vector elements.

Parameters
listThe initializer list.
Exceptions
std::invalid_argumentInvalid assignment to fixed-size vector.
Returns
Reference to the assigned 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.


The documentation for this class was generated from the following files: