sisi4s
Loading...
Searching...
No Matches
sisi4s::LapackMatrix< F > Class Template Reference

#include <LapackMatrix.hpp>

Inheritance diagram for sisi4s::LapackMatrix< F >:
Collaboration diagram for sisi4s::LapackMatrix< F >:

Public Member Functions

 LapackMatrix (const LapackMatrix< F > &A)
 Copies the content of the Lapack matrix.
 
 LapackMatrix (const int rows_, const int columns_)
 Construct a zero nxm Lapack matrix.
 
 LapackMatrix (const int rows_, const int columns_, const std::vector< F > &values_)
 Construct an nxm Lapack matrix from a given vector of values.
 
 LapackMatrix (Tensor< F > &ctfA, const int rows_=0, const int columns_=0)
 Constructs an LapackMatrix from a CTF tensor on all ranks if rows and columns is given, reinterpret the matrix.
 
LapackMatrix< F > & operator= (const LapackMatrix< F > &A)
 
const F & operator() (const int i, const int j) const
 
F & operator() (const int i, const int j)
 
int getRows () const
 
int getColumns () const
 
const F * getValues () const
 Returns the pointer to the column major data.
 
F * getValues ()
 Returns the pointer to the mutable column major data.
 
void write (Tensor< F > &ctfA) const
 Writes the data of this Lapack matrix to the CTF tensor.
 

Protected Attributes

int rows
 Number of rows and columns.
 
int columns
 
std::vector< F > values
 The column major data.
 

Constructor & Destructor Documentation

◆ LapackMatrix() [1/4]

template<typename F = real>
sisi4s::LapackMatrix< F >::LapackMatrix ( const LapackMatrix< F > &  A)
inline

Copies the content of the Lapack matrix.

◆ LapackMatrix() [2/4]

template<typename F = real>
sisi4s::LapackMatrix< F >::LapackMatrix ( const int  rows_,
const int  columns_ 
)
inline

Construct a zero nxm Lapack matrix.

◆ LapackMatrix() [3/4]

template<typename F = real>
sisi4s::LapackMatrix< F >::LapackMatrix ( const int  rows_,
const int  columns_,
const std::vector< F > &  values_ 
)
inline

Construct an nxm Lapack matrix from a given vector of values.

◆ LapackMatrix() [4/4]

template<typename F = real>
sisi4s::LapackMatrix< F >::LapackMatrix ( Tensor< F > &  ctfA,
const int  rows_ = 0,
const int  columns_ = 0 
)
inline

Constructs an LapackMatrix from a CTF tensor on all ranks if rows and columns is given, reinterpret the matrix.

Member Function Documentation

◆ getColumns()

template<typename F = real>
int sisi4s::LapackMatrix< F >::getColumns ( ) const
inline
Here is the caller graph for this function:

◆ getRows()

template<typename F = real>
int sisi4s::LapackMatrix< F >::getRows ( ) const
inline
Here is the caller graph for this function:

◆ getValues() [1/2]

template<typename F = real>
F * sisi4s::LapackMatrix< F >::getValues ( )
inline

Returns the pointer to the mutable column major data.

◆ getValues() [2/2]

template<typename F = real>
const F * sisi4s::LapackMatrix< F >::getValues ( ) const
inline

Returns the pointer to the column major data.

Here is the caller graph for this function:

◆ operator()() [1/2]

template<typename F = real>
F & sisi4s::LapackMatrix< F >::operator() ( const int  i,
const int  j 
)
inline

◆ operator()() [2/2]

template<typename F = real>
const F & sisi4s::LapackMatrix< F >::operator() ( const int  i,
const int  j 
) const
inline

◆ operator=()

template<typename F = real>
LapackMatrix< F > & sisi4s::LapackMatrix< F >::operator= ( const LapackMatrix< F > &  A)
inline

◆ write()

template<typename F = real>
void sisi4s::LapackMatrix< F >::write ( Tensor< F > &  ctfA) const
inline

Writes the data of this Lapack matrix to the CTF tensor.

Member Data Documentation

◆ columns

template<typename F = real>
int sisi4s::LapackMatrix< F >::columns
protected

◆ rows

template<typename F = real>
int sisi4s::LapackMatrix< F >::rows
protected

Number of rows and columns.

◆ values

template<typename F = real>
std::vector<F> sisi4s::LapackMatrix< F >::values
protected

The column major data.


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