1#ifndef SCA_LAPACK_MATRIX_DEFINED
2#define SCA_LAPACK_MATRIX_DEFINED
21template <
typename F =
double>
75 void write(CTF::Matrix<F> &A);
Definition BlacsWorld.hpp:5
Definition ScaLapackMatrix.hpp:8
int dataType
Definition ScaLapackMatrix.hpp:11
int blockSize[2]
Definition ScaLapackMatrix.hpp:14
int blacsContext
Definition ScaLapackMatrix.hpp:12
int offset[2]
Definition ScaLapackMatrix.hpp:15
int lens[2]
Definition ScaLapackMatrix.hpp:13
int localLens[2]
Definition ScaLapackMatrix.hpp:16
Definition ScaLapackMatrix.hpp:22
const int * getDescriptor() const
Returns a pointer to a ScaLapack matrix descriptor, i.e. the first 9 integers of the class ScaLapackD...
Definition ScaLapackMatrix.hpp:58
BlacsWorld * blacsWorld
The BlacsWorld specifying the processor grid this matrix is distributed over.
Definition ScaLapackMatrix.hpp:95
void write(CTF::Matrix< F > &A)
Writes the content of the ScaLapackMatrix to the given CTF::Matrix. The CTF::Matrix must be allocated...
Definition ScaLapackMatrix.cxx:135
const F * getLocalValues() const
Returns the pointer to the block data owned by this process.
Definition ScaLapackMatrix.hpp:63
F * getLocalValues()
Returns the pointer to the mutable block data owned by this process.
Definition ScaLapackMatrix.hpp:69
int64_t * localIndices
The global indices within the local matrix elements owned by this process. The global index of an ele...
Definition ScaLapackMatrix.hpp:101
int getGlobalIndex(int localIndex, int dimension)
Retrieves the global row or column index within the full matrix from the given row or column index wi...
Definition ScaLapackMatrix.cxx:156
F * localValues
The block data owned by this process.
Definition ScaLapackMatrix.hpp:106
~ScaLapackMatrix()
Frees all resources associated with the ScaLapack matrix on all processes.
Definition ScaLapackMatrix.cxx:125
Definition Algorithm.hpp:10
CTF::Tensor< F > Tensor
Definition Tensor.hpp:9