Blaze 3.9
Public Member Functions | Private Attributes | List of all members
blaze::DMatFixExpr< MT, SO > Class Template Reference

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

#include <DMatFixExpr.h>

Public Member Functions

 DMatFixExpr (MT &dm) noexcept
 Constructor for the DMatTransposer class. More...
 
template<typename Type >
DMatFixExproperator= (initializer_list< initializer_list< Type > > list)
 List assignment to all matrix elements. More...
 
template<typename Other , size_t Rows, size_t Cols>
DMatFixExproperator= (const Other(&array)[Rows][Cols])
 Array assignment to all matrix elements. More...
 
template<typename Other , size_t Rows, size_t Cols>
DMatFixExproperator= (const std::array< std::array< Other, Cols >, Rows > &array)
 Array assignment to all matrix elements. More...
 
template<typename MT2 , bool SO2>
DMatFixExproperator= (const Matrix< MT2, SO2 > &rhs)
 Assignment operator for different matrices. More...
 

Private Attributes

MT & dm_
 The dense matrix operand.
 

Detailed Description

template<typename MT, bool SO>
class blaze::DMatFixExpr< MT, SO >

Expression object for fixing the size of a dense matrix.

The DMatFixExpr class represents the compile time expression for fixing the size of dense matrices.

Constructor & Destructor Documentation

◆ DMatFixExpr()

template<typename MT , bool SO>
blaze::DMatFixExpr< MT, SO >::DMatFixExpr ( MT &  dm)
inlineexplicitnoexcept

Constructor for the DMatTransposer class.

Parameters
dmThe dense matrix operand.

Member Function Documentation

◆ operator=() [1/4]

template<typename MT , bool SO>
template<typename MT2 , bool SO2>
DMatFixExpr & blaze::DMatFixExpr< MT, SO >::operator= ( const Matrix< MT2, SO2 > &  rhs)
inline

Assignment operator for different matrices.

Parameters
rhsMatrix to be copied.
Exceptions
std::invalid_argumentInvalid assignment to fixed-size matrix.
Returns
Reference to the assigned fixed-size matrix.

This assignment operator offers the option to directly (copy) assign to all elements of the matrix by means of a matrix. In case the size of the given matrix doesn't match the size of this matrix, a std::invalid_argument exception is thrown.

◆ operator=() [2/4]

template<typename MT , bool SO>
template<typename Other , size_t Rows, size_t Cols>
DMatFixExpr & blaze::DMatFixExpr< MT, SO >::operator= ( const Other(&)  array[Rows][Cols])
inline

Array assignment to all matrix elements.

Parameters
arrayStatic array for the assignment.
Exceptions
std::invalid_argumentInvalid assignment to fixed-size matrix.
Returns
Reference to the assigned fixed-size matrix.

This assignment operator offers the option to directly (copy) assign to all elements of the matrix by means of a static array. In case the size of the given array doesn't match the size of this matrix, a std::invalid_argument exception is thrown.

◆ operator=() [3/4]

template<typename MT , bool SO>
template<typename Other , size_t Rows, size_t Cols>
DMatFixExpr & blaze::DMatFixExpr< MT, SO >::operator= ( const std::array< std::array< Other, Cols >, Rows > &  array)
inline

Array assignment to all matrix elements.

Parameters
arrayThe given std::array for the assignment.
Exceptions
std::invalid_argumentInvalid assignment to fixed-size matrix.
Returns
Reference to the assigned fixed-size matrix.

This assignment operator offers the option to directly (copy) assign to all elements of the matrix by means of a std::array. In case the size of the given array doesn't match the size of this matrix, a std::invalid_argument exception is thrown.

◆ operator=() [4/4]

template<typename MT , bool SO>
template<typename Type >
DMatFixExpr & blaze::DMatFixExpr< MT, SO >::operator= ( initializer_list< initializer_list< Type > >  list)
inline

List assignment to all matrix elements.

Parameters
listThe initializer list.
Exceptions
std::invalid_argumentInvalid assignment to fixed-size matrix.
Returns
Reference to the assigned fixed-size matrix.

This assignment operator offers the option to directly (copy) assign to all elements of the matrix by means of an initializer list. In case the size of the given initializer doesn't match the size of this matrix, a std::invalid_argument exception is thrown.


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