linbox
|
blackbox of a matrix sum without copying. More...
#include <sum.h>
Public Member Functions | |
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. | |
size_t | rowdim (void) const |
Retreive row dimensions of BlackBox matrix. | |
size_t | coldim (void) const |
Retreive column dimensions of BlackBox matrix. |
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
Vector | LinBox dense or sparse vector of field elements |
SumOwner | ( | const Blackbox1 & | A, |
const Blackbox2 & | B | ||
) | [inline] |
Constructor from black box matrices.
This constructor creates a matrix that is the sum, A + B, of black box matrices.
A,B,: | black box matrices. |
SumOwner | ( | const Blackbox1 * | A_data, |
const Blackbox2 * | B_data | ||
) | [inline] |
Constructor from black box pointers.
This constructor creates a matrix that is the sum, A + B, of black box matrices.
A_data,B_data,: | pointers to black box matrices. |
Copy constructor.
Creates new black box objects in dynamic memory.
M | constant reference to compose black box matrix |
OutVector& apply | ( | OutVector & | y, |
const InVector & | x | ||
) | const [inline] |
OutVector& applyTranspose | ( | OutVector & | y, |
const InVector & | x | ||
) | const [inline] |
size_t rowdim | ( | void | ) | const [inline] |
Retreive row dimensions of BlackBox matrix.
This may be needed for applying preconditioners. Required by abstract base class.
size_t coldim | ( | void | ) | const [inline] |
Retreive column dimensions of BlackBox matrix.
Required by abstract base class.