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

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

#include <SMatFixExpr.h>

Public Member Functions

 SMatFixExpr (MT &sm) noexcept
 Constructor for the SMatTransposer class. More...
 
template<typename Type >
SMatFixExproperator= (initializer_list< initializer_list< Type > > list)
 List assignment to all matrix elements. More...
 
template<typename MT2 , bool SO2>
SMatFixExproperator= (const Matrix< MT2, SO2 > &rhs)
 Assignment operator for different matrices. More...
 

Private Attributes

MT & sm_
 The sparse matrix operand.
 

Detailed Description

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

Expression object for fixing the size of a sparse matrix.

The SMatFixExpr class represents the compile time expression for fixing the size of sparse matrices.

Constructor & Destructor Documentation

◆ SMatFixExpr()

template<typename MT , bool SO>
blaze::SMatFixExpr< MT, SO >::SMatFixExpr ( MT &  sm)
inlineexplicitnoexcept

Constructor for the SMatTransposer class.

Parameters
smThe sparse matrix operand.

Member Function Documentation

◆ operator=() [1/2]

template<typename MT , bool SO>
template<typename MT2 , bool SO2>
SMatFixExpr & blaze::SMatFixExpr< 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/2]

template<typename MT , bool SO>
template<typename Type >
SMatFixExpr & blaze::SMatFixExpr< 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 files: