Public Member Functions |
| Sum (const Blackbox1 &A, const Blackbox2 &B) |
| Sum (const Blackbox1 *A_ptr, const Blackbox2 *B_ptr) |
| Sum (const Sum< Blackbox1, Blackbox2 > &M) |
| ~Sum (void) |
| Destructor.
|
template<class OutVector , class InVector > |
OutVector & | apply (OutVector &y, const InVector &x) const |
template<class OutVector , class InVector > |
OutVector & | applyTranspose (OutVector &y, const InVector &x) const |
size_t | rowdim (void) const |
size_t | coldim (void) const |
template<class _Blackbox1, class _Blackbox2>
class LinBox::Sum< _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., Sum(A,B)x=(A+B)x=Ax+Bx
- Parameters:
-
Vector | LinBox} dense or sparse vector of field elements |