represents a (CUDA) matrix
More...
#include <flexMatrixGPU.h>
|
| | flexMatrixGPU (int aNumRows, int aNumCols, int *rowList, int *colList, T *indexVal, bool formatCRS, bool aMinus) |
| | initializes a matrix More...
|
| |
| flexMatrixGPU< T > * | copy () |
| | copies the linear operator More...
|
| |
| void | times (bool transposed, const Tdata &input, Tdata &output) |
| | applies linear operator on vector More...
|
| |
| void | timesPlus (bool transposed, const Tdata &input, Tdata &output) |
| | applies linear operator on vector and adds its result to y More...
|
| |
| void | timesMinus (bool transposed, const Tdata &input, Tdata &output) |
| | applies linear operator on vector and substracts its result from y More...
|
| |
| T | getMaxRowSumAbs (bool transposed) |
| | returns the maximum sum of absolute values per row used for preconditioning More...
|
| |
| std::vector< T > | getAbsRowSum (bool transposed) |
| | returns a vector of sum of absolute values per row used for preconditioning More...
|
| |
| void | printRow (int i) |
| | prints requested row More...
|
| |
|
void | printMatrix () |
| | prints the whole matrix
|
| |
| thrust::device_vector< T > | getAbsRowSumCUDA (bool transposed) |
| | same function as getAbsRowSum() but implemented in CUDA More...
|
| |
| | flexLinearOperator (int aNumRows, int aNumCols, linOp aType, bool aIsMinus) |
| | initializes the linear operator More...
|
| |
| int | getNumCols () const |
| | returns number of columns of the linear operator More...
|
| |
| int | getNumRows () const |
| | returns number of rows of the linear operator More...
|
| |
| void | setNumCols (int aNumCols) |
| | sets the number of columns of the linear operator More...
|
| |
| void | setNumRows (int aNumRows) |
| | sets the number of rows of the linear operator More...
|
| |
| void | setMinus (bool aIsMinus) |
| | constrols if operator should be negated or not More...
|
| |
template<typename T>
class flexMatrixGPU< T >
represents a (CUDA) matrix
◆ flexMatrixGPU()
template<typename T>
| flexMatrixGPU< T >::flexMatrixGPU |
( |
int |
aNumRows, |
|
|
int |
aNumCols, |
|
|
int * |
rowList, |
|
|
int * |
colList, |
|
|
T * |
indexVal, |
|
|
bool |
formatCRS, |
|
|
bool |
aMinus |
|
) |
| |
|
inline |
initializes a matrix
- Parameters
-
| aNumRows | number of rows |
| aNumCols | number of cols |
| rowList | array of row indices |
| colList | array of column indices |
| indexVal | array of data corresponding row and column indices |
| formatCRS | determines if the input data is in compressed row storage |
| aMinus | determines if operator is negated |
- See also
- isMinus
◆ copy()
◆ getAbsRowSum()
template<typename T>
| std::vector<T> flexMatrixGPU< T >::getAbsRowSum |
( |
bool |
transposed | ) |
|
|
inlinevirtual |
returns a vector of sum of absolute values per row used for preconditioning
- Parameters
-
| transposed | is true if operator should be (temporarily) transposed before usage |
- Returns
- vector of sum of absolute values per row
Implements flexLinearOperator< T >.
◆ getAbsRowSumCUDA()
template<typename T>
| thrust::device_vector<T> flexMatrixGPU< T >::getAbsRowSumCUDA |
( |
bool |
transposed | ) |
|
|
inlinevirtual |
same function as getAbsRowSum() but implemented in CUDA
- Parameters
-
| transposed | is true if operator should be (temporarily) transposed before usage |
- Returns
- vector of sum of absolute values per row
Implements flexLinearOperator< T >.
◆ getMaxRowSumAbs()
returns the maximum sum of absolute values per row used for preconditioning
- Parameters
-
| transposed | is true if operator should be (temporarily) transposed before usage |
- Returns
- maximum sum of absolute values per row
Implements flexLinearOperator< T >.
◆ printRow()
prints requested row
- Parameters
-
◆ times()
template<typename T>
| void flexMatrixGPU< T >::times |
( |
bool |
transposed, |
|
|
const Tdata & |
input, |
|
|
Tdata & |
output |
|
) |
| |
|
inlinevirtual |
applies linear operator on vector
equals
- Parameters
-
| transposed | is true if operator should be (temporarily) transposed before usage |
| input | data to be processed |
| output | output data |
Implements flexLinearOperator< T >.
◆ timesMinus()
template<typename T>
| void flexMatrixGPU< T >::timesMinus |
( |
bool |
transposed, |
|
|
const Tdata & |
input, |
|
|
Tdata & |
output |
|
) |
| |
|
inlinevirtual |
applies linear operator on vector and substracts its result from y
equals
- Parameters
-
| transposed | is true if operator should be (temporarily) transposed before usage |
| input | data to be processed |
| output | output data |
Implements flexLinearOperator< T >.
◆ timesPlus()
template<typename T>
| void flexMatrixGPU< T >::timesPlus |
( |
bool |
transposed, |
|
|
const Tdata & |
input, |
|
|
Tdata & |
output |
|
) |
| |
|
inlinevirtual |
applies linear operator on vector and adds its result to y
equals
- Parameters
-
| transposed | is true if operator should be (temporarily) transposed before usage |
| input | data to be processed |
| output | output data |
Implements flexLinearOperator< T >.
The documentation for this class was generated from the following file: