|
FlexBox - A Flexible Primal-Dual ToolBox
|
represents a (non-CUDA) matrix More...
#include <flexMatrix.h>
Public Member Functions | |
| flexMatrix () | |
| initializes an empty matrix | |
| flexMatrix (int aNumRows, int aNumCols, bool aMinus) | |
| initializes a matrix More... | |
| flexMatrix< 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... | |
| void | blockInsert (std::vector< int > &indexI, const std::vector< int > &indexJ, const Tdata &indexVal) |
| inserts data into matrix 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... | |
Public Member Functions inherited from flexLinearOperator< T > | |
| 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... | |
Additional Inherited Members | |
Public Attributes inherited from flexLinearOperator< T > | |
| linOp | type |
| type of linear operator More... | |
| bool | isMinus |
| determines if operator is negated | |
represents a (non-CUDA) matrix
|
inline |
initializes a matrix
| aNumRows | number of rows |
| aNumCols | number of cols |
| aMinus | determines if operator is negated |
|
inline |
inserts data into matrix
this is the fastest way to fill flexMatrix
| indexI | vector of row indices |
| indexJ | vector of column indices |
| indexVal | vector of data corresponding row and column indices |
|
inlinevirtual |
|
inlinevirtual |
returns a vector of sum of absolute values per row used for preconditioning
| transposed | is true if operator should be (temporarily) transposed before usage |
Implements flexLinearOperator< T >.
|
inlinevirtual |
same function as getAbsRowSum() but implemented in CUDA
| transposed | is true if operator should be (temporarily) transposed before usage |
Implements flexLinearOperator< T >.
|
inlinevirtual |
returns the maximum sum of absolute values per row used for preconditioning
| transposed | is true if operator should be (temporarily) transposed before usage |
Implements flexLinearOperator< T >.
|
inline |
prints requested row
| i | row to be printed |
|
inlinevirtual |
applies linear operator on vector
equals
| transposed | is true if operator should be (temporarily) transposed before usage |
| input | data to be processed |
| output | output data |
Implements flexLinearOperator< T >.
|
inlinevirtual |
applies linear operator on vector and substracts its result from y
equals
| transposed | is true if operator should be (temporarily) transposed before usage |
| input | data to be processed |
| output | output data |
Implements flexLinearOperator< T >.
|
inlinevirtual |
applies linear operator on vector and adds its result to y
equals
| transposed | is true if operator should be (temporarily) transposed before usage |
| input | data to be processed |
| output | output data |
Implements flexLinearOperator< T >.
1.8.13