|
| | SumOwner (const Blackbox1 &A, const Blackbox2 &B) |
| | Constructor from black box matrices.
|
| |
| | SumOwner (const Blackbox1 *A_data, const Blackbox2 *B_data) |
| | Constructor from black box pointers.
|
| |
| | SumOwner (const SumOwner< Blackbox1, Blackbox2 > &M) |
| | Copy constructor.
|
| |
| | ~SumOwner (void) |
| | Destructor.
|
| |
| template<class OutVector, class InVector> |
| OutVector & | apply (OutVector &y, const InVector &x) const |
| | Application of BlackBox matrix.
|
| |
| template<class OutVector, class InVector> |
| OutVector & | applyTranspose (OutVector &y, const InVector &x) const |
| | Application of BlackBox matrix transpose.
|
| |
| template<typename _BBt1, typename _BBt2, typename Field> |
| | SumOwner (const Sum< _BBt1, _BBt2 > &M, const Field &F) |
| |
| template<typename _BBt1, typename _BBt2, typename Field> |
| | SumOwner (const SumOwner< _BBt1, _BBt2 > &M, const Field &F) |
| |
| size_t | rowdim (void) const |
| | Retreive row dimensions of BlackBox matrix.
|
| |
| size_t | coldim (void) const |
| | Retreive column dimensions of BlackBox matrix.
|
| |
| const Field & | field () const |
| |
| const Blackbox1 & | getLeftData () const |
| |
| Blackbox1 & | getLeftData () |
| |
| const Blackbox2 & | getRightData () const |
| |
| Blackbox2 & | getRightData () |
| |
| std::ostream & | write (std::ostream &os) const |
| |
template<class _Blackbox1, class _Blackbox2>
class LinBox::SumOwner< _Blackbox1, _Blackbox2 >
blackbox of a matrix sum without copying.
Adds only at apply time. Given two black boxes A and B of the same dimensions, form a black box representing A+B, i.e., SumOwner(A,B)x=(A+B)x=Ax+Bx
template<class _Blackbox1, class _Blackbox2>
template<class OutVector, class InVector>
| OutVector & apply |
( |
OutVector & | y, |
|
|
const InVector & | x ) const |
|
inline |
Application of BlackBox matrix.
\( y= (A+B) \cdot x\). Requires one vector conforming to the LinBox vector archetype. Required by abstract base class.
- Returns
- reference to vector y containing output.
- Parameters
-
| x | constant reference to vector to contain input |
| y | |
template<class _Blackbox1, class _Blackbox2>
template<class OutVector, class InVector>
| OutVector & applyTranspose |
( |
OutVector & | y, |
|
|
const InVector & | x ) const |
|
inline |
Application of BlackBox matrix transpose.
\( y= (A+B)^T \cdot x\). Requires one vector conforming to the LinBox vector archetype. Required by abstract base class.
- Returns
- reference to vector y containing output.
- Parameters
-
| x | constant reference to vector to contain input |
| y | |