represents a zero operator (empty matrix)
More...
#include <flexZeroOperator.h>
|
| | flexZeroOperator (int aNumRows, int aNumCols, bool aMinus) |
| | initializes the zero operator More...
|
| |
| flexZeroOperator< 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...
|
| |
| 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 flexZeroOperator< T >
represents a zero operator (empty matrix)
◆ flexZeroOperator()
initializes the zero operator
- Parameters
-
| aNumRows | number of rows |
| aNumCols | number of columns |
| aMinus | determines if operator is negated |
- See also
- isMinus
◆ copy()
◆ getAbsRowSum()
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> flexZeroOperator< 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 >.
◆ times()
template<typename T>
| void flexZeroOperator< 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 flexZeroOperator< 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 flexZeroOperator< 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: