Submatrix< Blackbox, VectorCategories::DenseVectorTag > Class Template Reference
#include <submatrix.h>
List of all members.
Public Member Functions |
| Submatrix (const Blackbox *BB, size_t row, size_t col, size_t rowdim, size_t coldim) |
virtual | ~Submatrix () |
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 |
Detailed Description
template<class Blackbox>
class LinBox::Submatrix< Blackbox, VectorCategories::DenseVectorTag >
Specialization for dense vectors
Constructor & Destructor Documentation
Submatrix |
( |
const Blackbox * |
BB, |
|
|
size_t |
row, |
|
|
size_t |
col, |
|
|
size_t |
rowdim, |
|
|
size_t |
coldim | |
|
) |
| | [inline] |
Constructor from field and dense vector of field elements.
- Parameters:
-
| BB | Black box from which to extract the submatrix |
| row | First row of the submatrix to extract (1.._BB->rowdim ()) |
| col | First column of the submatrix to extract (1.._BB->coldim ()) |
| rowdim | Row dimension |
| coldim | Column dimension |
Member Function Documentation
OutVector& apply |
( |
OutVector & |
y, |
|
|
const InVector & |
x | |
|
) |
| | const [inline] |
Application of BlackBox matrix. y= A*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 |
OutVector& applyTranspose |
( |
OutVector & |
y, |
|
|
const InVector & |
x | |
|
) |
| | const [inline] |
Application of BlackBox matrix transpose. y= transpose(A)*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 |
size_t rowdim |
( |
void |
|
) |
const [inline] |
Retreive _row dimensions of BlackBox matrix. This may be needed for applying preconditioners. Required by abstract base class.
- Returns:
- integer number of _rows of black box matrix.
size_t coldim |
( |
void |
|
) |
const [inline] |
Retreive _column dimensions of BlackBox matrix. Required by abstract base class.
- Returns:
- integer number of _columns of black box matrix.
The documentation for this class was generated from the following file:
- /build/buildd-linbox_1.1.6~rc0-4-kfreebsd-i386-wrIGvs/linbox-1.1.6~rc0/linbox/blackbox/submatrix.h