Inheritance diagram for Diagonal< GF2, VectorTraits< Vector< GF2 >::Dense >::VectorCategory >:
Public Types | |
typedef GF2 | Field |
typedef Vector< GF2 >::Dense | Vector |
typedef BlackboxArchetype | Blackbox |
typedef bool | Element |
Public Methods | |
Diagonal (const Field &F, const BitVector &y) | |
const Field & | field () const |
The field. | |
Blackbox * | clone () const |
template<class OutVector, class InVector> OutVector & | apply (OutVector &y, const InVector &x) const |
y := Ax, matrix-vector product. | |
Vector & | apply (Vector &y, const Vector &x) const |
template<class OutVector, class InVector> OutVector & | applyTranspose (OutVector &y, const InVector &x) const |
y := xA, vector-matrix product. | |
size_t | rowdim () const |
Returns the number of rows of the matrix. | |
size_t | coldim () const |
Returns the number of columns of the matrix. |
|
|
|
|
|
|
|
|
|
|
|
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.
Reimplemented from BlackboxArchetype. |
|
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.
Reimplemented from BlackboxArchetype. |
|
|
|
Returns the number of columns of the matrix. This may be zero or greater. Currently matrix size beyond size_t is not supported. Reimplemented from BlackboxArchetype. |
|
|
|
The field.
|
|
Returns the number of rows of the matrix. This may be zero or greater. Currently matrix size beyond size_t is not supported. Reimplemented from BlackboxArchetype. |