|
| MatrixBlackbox (const Field &F, Matrix &Rep) |
| Constructor. More...
|
|
| MatrixBlackbox (const Field &F, size_t m, size_t n) |
| Constructor with size. More...
|
|
template<class Row > |
| MatrixBlackbox (const Field &F, VectorStream< Row > &stream) |
| Constructor. More...
|
|
| MatrixBlackbox (const MatrixBlackbox &B) |
| Copy constructor.
|
|
| ~MatrixBlackbox () |
| Destructor. More...
|
|
BlackboxArchetype * | clone () const |
| Create a clone of the matrix.
|
|
template<class Vector1 , class Vector2 > |
Vector1 & | apply (Vector1 &y, const Vector2 &x) const |
| Generic matrix-vector product . More...
|
|
Vector & | apply (Vector &y, const Vector &x) const |
| Matrix-vector product . More...
|
|
template<class Vector1 , class Vector2 > |
Vector1 & | applyTranspose (Vector1 &y, const Vector2 &x) const |
| Generic transpose matrix-vector product . More...
|
|
Vector & | applyTranspose (Vector &y, const Vector &x) const |
| Transpose matrix-vector product . More...
|
|
size_t | rowdim () const |
| Retreive row dimensions of Sparsemat matrix. More...
|
|
size_t | coldim () const |
| Retreive column dimensions of Sparsemat matrix. More...
|
|
std::istream & | read (std::istream &is) |
| Read the matrix from a stream. More...
|
|
std::ostream & | write (std::ostream &os) const |
| Write the matrix to a stream. More...
|
|
const Field & | field () const |
| Return a reference to the base field.
|
|
Matrix & | rep () |
| Return a reference to the underlying representation.
|
|
template<class InVector , class OutVector > |
OutVector & | apply (OutVector &y, const InVector &x) const |
| y := Ax, matrix-vector product. More...
|
|
template<class InVector , class OutVector > |
OutVector & | apply (OutVector &y, const InVector &x, void *handle) const |
| y := Ax, matrix-vector product using a handle for ... More...
|
|
template<class InVector , class OutVector > |
OutVector & | applyTranspose (OutVector &y, const InVector &x) const |
| y := xA, vector-matrix product. More...
|
|
template<class InVector , class OutVector > |
OutVector & | applyTranspose (OutVector &y, const InVector &x, void *handle) const |
| y := xA, vector-matrix product using a handle for ... More...
|
|
template<class _Field, class _Matrix, class _Vector = typename LinBox::Vector<_Field>::Dense>
class LinBox::MatrixBlackbox< _Field, _Matrix, _Vector >
Matrix black box.
This class wraps a matrix meeting the MatrixArchetype interface into a black box meeting the BlackboxArchetype interface. It uses MatrixDomain to implement apply
and applyTranspose
.
OutVector& apply |
( |
OutVector & |
y, |
|
|
const InVector & |
x |
|
) |
| const |
|
inherited |
y := Ax, matrix-vector product.
The vector x must be of size A.coldim(), where A is this blackbox. On entry to apply, the vector y must be of size A.rowdim(). Neither vector has it's size or capacity modified by apply. Apply is not responsible for the validity of the sizes, which may or may not be checked. The two vectors may not overlap in memory.
- Parameters
-
y | it's entries are overwritten and a reference to it is also returned to allow for use in nested expressions. |
x | it's entries are the input data. |
OutVector& apply |
( |
OutVector & |
y, |
|
|
const InVector & |
x, |
|
|
void * |
handle |
|
) |
| const |
|
inherited |
y := Ax, matrix-vector product using a handle for ...
The handle serves as "protection from the future". The idea is that the handle could allow the blackbox to operate more as a pure container, with the field (or other functionality such as dot product) provided through the handle.
However, there are no known current uses (2003 june).
OutVector& applyTranspose |
( |
OutVector & |
y, |
|
|
const InVector & |
x |
|
) |
| const |
|
inherited |
y := xA, vector-matrix product.
(Or from a column vector viewpoint: y := AT x, matrix transpose times vector product. )
The vector x must be of size A.rowdim(), where A is this blackbox.
On entry to apply, the vector y must be of size A.coldim().
Neither vector has it's size or capacity modified by applyTranspose. ApplyTranspose is not
responsible for the validity of the sizes, which may or may not be checked.
The two vectors may not overlap in memory.
@param y it's entries are overwritten and a reference to it is also returned to allow for
use in nested expressions.
@param x it's entries are the input data.
OutVector& applyTranspose |
( |
OutVector & |
y, |
|
|
const InVector & |
x, |
|
|
void * |
handle |
|
) |
| const |
|
inherited |
y := xA, vector-matrix product using a handle for ...
The handle serves as "protection from the future". The idea is that the handle could allow the blackbox to operate more as a pure container, with the field (or other functionality such as dot product) provided through the handle.
However, there are no known current uses (2003 june).