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

Expression object for fixing the size of a dense vector. More...

#include <DVecFixExpr.h>

Public Member Functions

 DVecFixExpr (VT &dv) noexcept
 Constructor for the DVecTransposer class. More...
 
template<typename Type >
DVecFixExproperator= (initializer_list< Type > list)
 List assignment to all vector elements. More...
 
template<typename Other , size_t Dim>
DVecFixExproperator= (const Other(&array)[Dim])
 Array assignment to all vector elements. More...
 
template<typename Other , size_t Dim>
DVecFixExproperator= (const std::array< Other, Dim > &array)
 Array assignment to all vector elements. More...
 
template<typename VT2 >
DVecFixExproperator= (const Vector< VT2, TF > &rhs)
 Assignment operator for different vectors. More...
 

Private Attributes

VT & dv_
 The dense vector operand.
 

Detailed Description

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

Expression object for fixing the size of a dense vector.

The DVecFixExpr class represents the compile time expression for fixing the size of dense vectors.

Constructor & Destructor Documentation

◆ DVecFixExpr()

template<typename VT , bool TF>
blaze::DVecFixExpr< VT, TF >::DVecFixExpr ( VT &  dv)
inlineexplicitnoexcept

Constructor for the DVecTransposer class.

Parameters
dvThe dense vector operand.

Member Function Documentation

◆ operator=() [1/4]

template<typename VT , bool TF>
template<typename Other , size_t Dim>
DVecFixExpr & blaze::DVecFixExpr< VT, TF >::operator= ( const Other(&)  array[Dim])
inline

Array assignment to all vector elements.

Parameters
arrayStatic array for the assignment.
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 static array. In case the size of the given array doesn't match the size of this vector, a std::invalid_argument exception is thrown.

◆ operator=() [2/4]

template<typename VT , bool TF>
template<typename Other , size_t Dim>
DVecFixExpr & blaze::DVecFixExpr< VT, TF >::operator= ( const std::array< Other, Dim > &  array)
inline

Array assignment to all vector elements.

Parameters
arrayThe given std::array for the assignment.
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 std::array. In case the size of the given array doesn't match the size of this vector, a std::invalid_argument exception is thrown.

◆ operator=() [3/4]

template<typename VT , bool TF>
template<typename VT2 >
DVecFixExpr & blaze::DVecFixExpr< 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=() [4/4]

template<typename VT , bool TF>
template<typename Type >
DVecFixExpr & blaze::DVecFixExpr< 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 file: