linbox
|
Blackbox of a difference: C := A - B
, i.e Cx = Ax - Bx
.
More...
#include <dif.h>
Inherits BlackboxInterface.
Public Member Functions | |
Dif (const Blackbox1 &A, const Blackbox2 &B) | |
Build this as A - B from blackboxes A, B. More... | |
Dif (const Blackbox1 *A_ptr, const Blackbox2 *B_ptr) | |
Build this as A - B from blackbox pointers A_ptr, B_ptr. More... | |
Dif (const Dif< Blackbox1, Blackbox2 > &M) | |
Makes a deep copy. More... | |
~Dif (void) | |
Destructor. | |
template<class OutVector , class InVector > | |
OutVector & | apply (OutVector &y, const InVector &x) const |
Application of BlackBox matrix. More... | |
template<class OutVector , class InVector > | |
OutVector & | applyTranspose (OutVector &y, const InVector &x) const |
Application of BlackBox matrix transpose. More... | |
size_t | rowdim (void) const |
Retreive row dimensions of BlackBox matrix. More... | |
size_t | coldim (void) const |
Retreive column dimensions of BlackBox matrix. More... | |
Blackbox of a difference: C := A - B
, i.e Cx = Ax - Bx
.
Template parameters: Field is the class of the entry domain, Vector is a LinBox dense or sparse vector of field elements class.
|
inline |
Build this as A - B from blackboxes A, B.
A and B must have the same shape and be over the same field. Their data is not copied. A subsequent change to one of them also changes this difference.
|
inline |
Build this as A - B from blackbox pointers A_ptr, B_ptr.
The two matrices must have the same shape and be over the same field. Their data is copied. I don't know why.
Makes a deep copy.
Creates new black box objects in dynamic memory.
M | constant reference to compose black box matrix |
|
inline |
|
inline |
|
inline |
Retreive row dimensions of BlackBox matrix.
This may be needed for applying preconditioners. Required by abstract base class.
|
inline |
Retreive column dimensions of BlackBox matrix.
Required by abstract base class.