Spectral Integral Suite in C++
sis::LinopMat< std::complex< T > > Class Template Reference

This class represents a block matrix operator. It is a matrix of operators. More...

#include <sis.hpp>

Public Member Functions

 LinopMat ()
 Null constructor. More...
 
 LinopMat (int r_, int c_)
 Initializes a Linop Matrix of r_ rows and c_ columns. More...
 
 LinopMat (const LinopMat< std::complex< T > > &in)
 Copy constructor. More...
 
 LinopMat (const LinopMat< T > &in)
 Copy constructor. More...
 
void operator= (const LinopMat< std::complex< T > > &in)
 Assignment operator. More...
 
void operator= (const LinopMat< T > &in)
 Assignment operator. More...
 
LinopMat< std::complex< T > > & operator<< (std::complex< T > b)
 Use this to input multiple Linops to the LinopMat using comma separators. Input type of constant. More...
 
LinopMat< std::complex< T > > & operator<< (T b)
 Use this to input multiple Linops to the LinopMat using comma separators. Input type of constant. More...
 
Linop< std::complex< T > > & operator[] (int i)
 Use this to to refer to Linops. For 1D Matrices, we use the Row major format when refering to [i]. See wiki for row-major format. More...
 
Linop< std::complex< T > > & operator() (int i, int j)
 Use this to to refer to Linop. For 2D Matrices, refer to matrix element Linop by (i,j) with the row and column index. Indices start from 0. More...
 
ChebfunMat< std::complex< T > > operator() (ChebfunMat< std::complex< T > > in)
 Use this to apply a LinopMat on a ChebfunMat. More...
 
LinopMat< std::complex< T > > & operator<< (Eigen::Array< std::complex< T >, Eigen::Dynamic, 1 > b)
 Use this to input multiple Linops to the LinopMat using comma separators. Input type Eigen array. More...
 
LinopMat< std::complex< T > > & operator<< (std::valarray< std::complex< T > > b)
 Use this to input multiple Linops to the LinopMat using comma separators. Input type valarray. More...
 
LinopMat< std::complex< T > > & operator<< (std::valarray< T > b)
 Use this to input multiple Linops to the LinopMat using comma separators. Input type valarray. More...
 
LinopMat< std::complex< T > > & operator<< (Linop< std::complex< T > > b)
 Use this to input multiple Linops to the LinopMat using comma. More...
 
LinopMat< std::complex< T > > & operator<< (Linop< T > b)
 Use this to input multiple Linops to the LinopMat using comma. More...
 
void resize (int r_, int c_)
 This clears all contents in the LinopMat, and then creates a fresh LinopMat of size r_ x c_. More...
 
LinopMat< std::complex< T > > & operator, (std::complex< T > b)
 Overloads comma separator to input Chebfuns into a ChebfunMat. Input type constant. More...
 
LinopMat< std::complex< T > > & operator, (T b)
 Overloads comma separator to input Chebfuns into a ChebfunMat. Input type constant. More...
 
LinopMat< std::complex< T > > & operator, (Eigen::Array< std::complex< T >, Eigen::Dynamic, 1 > b)
 Overloads comma separator to input Chebfuns into a ChebfunMat. Input type Eigen array. More...
 
LinopMat< std::complex< T > > & operator, (std::valarray< std::complex< T > > b)
 Overloads comma separator to input Chebfuns into a ChebfunMat. Input type valarray. More...
 
LinopMat< std::complex< T > > & operator, (std::valarray< T > b)
 Overloads comma separator to input Chebfuns into a ChebfunMat. Input type valarray. More...
 
LinopMat< std::complex< T > > & operator, (Linop< std::complex< T > > b)
 Overloads comma separator to input Chebfuns into a ChebfunMat. Input type Chebfun. More...
 
LinopMat< std::complex< T > > & operator, (Linop< T > b)
 Overloads comma separator to input Chebfuns into a ChebfunMat. Input type Chebfun. More...
 
void setConstant (T in)
 Sets every member in LinopMat to constant. More...
 
void setConstant (std::complex< T > in)
 Sets every member in LinopMat to complex constant. More...
 
void setIdentity ()
 Sets LinopMat to identity. More...
 
LinopMat< std::complex< T > > & operator<< (LinopMat< std::complex< T > > b)
 Use this to input multiple LinopMats to the LinopMat using comma separators. Call at after initializing a LinopMat, or after calling resize, , similar to Eigen's << operator. CAREFUL: If dimensions are not compatible, it will not throw an error, and could end up in segv. More...
 
LinopMat< std::complex< T > > & operator, (LinopMat< std::complex< T > > b)
 
LinopMat< std::complex< T > > & operator<< (LinopMat< T > b)
 
LinopMat< std::complex< T > > & operator, (LinopMat< T > b)
 
LinopMat< std::complex< T > > cTranspose ()
 

Public Attributes

int r
 Number of rows. More...
 
int c
 Number of columns. More...
 
std::valarray< Linop< std::complex< T > > > LinopVec
 This 1D vector of Linops holds all Linops of the LinopMat in the row-major format. More...
 
int countc
 
int countr
 
bool go_to_next_row
 

Detailed Description

template<class T>
class sis::LinopMat< std::complex< T > >

This class represents a block matrix operator. It is a matrix of operators.

Definition at line 8373 of file sis.hpp.

Constructor & Destructor Documentation

◆ LinopMat() [1/4]

template<class T >
sis::LinopMat< std::complex< T > >::LinopMat ( )
inline

Null constructor.

Definition at line 8395 of file sis.hpp.

◆ LinopMat() [2/4]

template<class T >
sis::LinopMat< std::complex< T > >::LinopMat ( int  r_,
int  c_ 
)
inline

Initializes a Linop Matrix of r_ rows and c_ columns.

Definition at line 8398 of file sis.hpp.

References sis::LinopMat< T >::c, sis::LinopMat< T >::LinopVec, and sis::LinopMat< T >::r.

◆ LinopMat() [3/4]

template<class T >
sis::LinopMat< std::complex< T > >::LinopMat ( const LinopMat< std::complex< T > > &  in)
inline

◆ LinopMat() [4/4]

template<class T >
sis::LinopMat< std::complex< T > >::LinopMat ( const LinopMat< T > &  in)
inline

Member Function Documentation

◆ cTranspose()

template<class T >
LinopMat<std::complex<T> > sis::LinopMat< std::complex< T > >::cTranspose ( )
inline

Definition at line 8790 of file sis.hpp.

References sis::LinopMat< T >::c, sis::conj(), and sis::LinopMat< T >::r.

◆ operator()() [1/2]

template<class T >
Linop<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator() ( int  i,
int  j 
)
inline

Use this to to refer to Linop. For 2D Matrices, refer to matrix element Linop by (i,j) with the row and column index. Indices start from 0.

Definition at line 8471 of file sis.hpp.

References sis::LinopMat< T >::c, and sis::LinopMat< T >::LinopVec.

◆ operator()() [2/2]

template<class T >
ChebfunMat<std::complex<T> > sis::LinopMat< std::complex< T > >::operator() ( ChebfunMat< std::complex< T > >  in)
inline

◆ operator,() [1/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator, ( std::complex< T >  b)
inline

Overloads comma separator to input Chebfuns into a ChebfunMat. Input type constant.

Definition at line 8553 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator,() [2/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator, ( b)
inline

Overloads comma separator to input Chebfuns into a ChebfunMat. Input type constant.

Definition at line 8561 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator,() [3/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator, ( Eigen::Array< std::complex< T >, Eigen::Dynamic, 1 >  b)
inline

Overloads comma separator to input Chebfuns into a ChebfunMat. Input type Eigen array.

Definition at line 8569 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator,() [4/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator, ( std::valarray< std::complex< T > >  b)
inline

Overloads comma separator to input Chebfuns into a ChebfunMat. Input type valarray.

Definition at line 8578 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator,() [5/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator, ( std::valarray< T >  b)
inline

Overloads comma separator to input Chebfuns into a ChebfunMat. Input type valarray.

Definition at line 8585 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator,() [6/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator, ( Linop< std::complex< T > >  b)
inline

Overloads comma separator to input Chebfuns into a ChebfunMat. Input type Chebfun.

Definition at line 8593 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator,() [7/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator, ( Linop< T >  b)
inline

Overloads comma separator to input Chebfuns into a ChebfunMat. Input type Chebfun.

Definition at line 8601 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator,() [8/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator, ( LinopMat< std::complex< T > >  b)
inline

◆ operator,() [9/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator, ( LinopMat< T >  b)
inline

◆ operator<<() [1/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator<< ( b)
inline

Use this to input multiple Linops to the LinopMat using comma separators. Input type of constant.

Definition at line 8457 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator<<() [2/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator<< ( std::complex< T >  b)
inline

Use this to input multiple Linops to the LinopMat using comma separators. Input type of constant.

Definition at line 8449 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator<<() [3/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator<< ( Eigen::Array< std::complex< T >, Eigen::Dynamic, 1 >  b)
inline

Use this to input multiple Linops to the LinopMat using comma separators. Input type Eigen array.

Definition at line 8502 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator<<() [4/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator<< ( std::valarray< std::complex< T > >  b)
inline

Use this to input multiple Linops to the LinopMat using comma separators. Input type valarray.

Definition at line 8511 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator<<() [5/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator<< ( std::valarray< T >  b)
inline

Use this to input multiple Linops to the LinopMat using comma separators. Input type valarray.

Definition at line 8519 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator<<() [6/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator<< ( Linop< std::complex< T > >  b)
inline

Use this to input multiple Linops to the LinopMat using comma.

Definition at line 8527 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator<<() [7/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator<< ( Linop< T >  b)
inline

Use this to input multiple Linops to the LinopMat using comma.

Definition at line 8535 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ operator<<() [8/9]

template<class T >
LinopMat<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator<< ( LinopMat< std::complex< T > >  b)
inline

Use this to input multiple LinopMats to the LinopMat using comma separators. Call at after initializing a LinopMat, or after calling resize, , similar to Eigen's << operator. CAREFUL: If dimensions are not compatible, it will not throw an error, and could end up in segv.

Definition at line 8640 of file sis.hpp.

References sis::LinopMat< T >::c, sis::LinopMat< T >::countc, sis::LinopMat< T >::countr, sis::LinopMat< T >::go_to_next_row, sis::LinopMat< T >::operator()(), sis::LinopMat< T >::r, and sis::LinopMat< T >::setConstant().

◆ operator<<() [9/9]

◆ operator=() [1/2]

template<class T >
void sis::LinopMat< std::complex< T > >::operator= ( const LinopMat< std::complex< T > > &  in)
inline

Assignment operator.

Definition at line 8427 of file sis.hpp.

References sis::LinopMat< T >::c, sis::LinopMat< T >::LinopVec, sis::LinopMat< T >::r, and sis::LinopMat< T >::resize().

◆ operator=() [2/2]

template<class T >
void sis::LinopMat< std::complex< T > >::operator= ( const LinopMat< T > &  in)
inline

Assignment operator.

Definition at line 8438 of file sis.hpp.

References sis::LinopMat< T >::c, sis::LinopMat< T >::LinopVec, sis::LinopMat< T >::r, and sis::LinopMat< T >::resize().

◆ operator[]()

template<class T >
Linop<std::complex<T> >& sis::LinopMat< std::complex< T > >::operator[] ( int  i)
inline

Use this to to refer to Linops. For 1D Matrices, we use the Row major format when refering to [i]. See wiki for row-major format.

Definition at line 8466 of file sis.hpp.

References sis::LinopMat< T >::LinopVec.

◆ resize()

template<class T >
void sis::LinopMat< std::complex< T > >::resize ( int  r_,
int  c_ 
)
inline

This clears all contents in the LinopMat, and then creates a fresh LinopMat of size r_ x c_.

Definition at line 8544 of file sis.hpp.

References sis::LinopMat< T >::c, sis::LinopMat< T >::LinopVec, and sis::LinopMat< T >::r.

◆ setConstant() [1/2]

template<class T >
void sis::LinopMat< std::complex< T > >::setConstant ( in)
inline

Sets every member in LinopMat to constant.

Definition at line 8608 of file sis.hpp.

References sis::LinopMat< T >::c, sis::LinopMat< T >::operator()(), and sis::LinopMat< T >::r.

◆ setConstant() [2/2]

template<class T >
void sis::LinopMat< std::complex< T > >::setConstant ( std::complex< T >  in)
inline

Sets every member in LinopMat to complex constant.

Definition at line 8617 of file sis.hpp.

References sis::LinopMat< T >::c, sis::LinopMat< T >::operator()(), and sis::LinopMat< T >::r.

◆ setIdentity()

template<class T >
void sis::LinopMat< std::complex< T > >::setIdentity ( )
inline

Member Data Documentation

◆ c

template<class T >
int sis::LinopMat< std::complex< T > >::c

Number of columns.

Definition at line 8385 of file sis.hpp.

◆ countc

template<class T >
int sis::LinopMat< std::complex< T > >::countc

Definition at line 8390 of file sis.hpp.

◆ countr

template<class T >
int sis::LinopMat< std::complex< T > >::countr

Definition at line 8391 of file sis.hpp.

◆ go_to_next_row

template<class T >
bool sis::LinopMat< std::complex< T > >::go_to_next_row

Definition at line 8392 of file sis.hpp.

◆ LinopVec

template<class T >
std::valarray<Linop<std::complex<T> > > sis::LinopMat< std::complex< T > >::LinopVec

This 1D vector of Linops holds all Linops of the LinopMat in the row-major format.

Definition at line 8388 of file sis.hpp.

◆ r

template<class T >
int sis::LinopMat< std::complex< T > >::r

Number of rows.

Definition at line 8383 of file sis.hpp.


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