linbox
|
Blackbox of a product: , i.e . More...
#include <compose.h>
Inherits BlackboxInterface.
Public Member Functions | |
ComposeOwner (const Blackbox1 &A, const Blackbox2 &B) | |
Constructor of C := A*B from blackbox matrices A and B. More... | |
ComposeOwner (const Blackbox1 *A_data, const Blackbox2 *B_data) | |
Constructor of C := (A_data)(*B_data). More... | |
ComposeOwner (const ComposeOwner< Blackbox1, Blackbox2 > &Mat) | |
Copy constructor. More... | |
~ComposeOwner () | |
Destructor. | |
template<class OutVector , class InVector > | |
OutVector & | apply (OutVector &y, const InVector &x) const |
Matrix * column vector product. More... | |
template<class OutVector , class InVector > | |
OutVector & | applyTranspose (OutVector &y, const InVector &x) const |
row vector * matrix product . More... | |
size_t | rowdim (void) const |
The number of rows. | |
size_t | coldim (void) const |
The number of columns. | |
const Field & | field () const |
The field. | |
Blackbox of a product: , i.e .
This is a class that multiplies two matrices by implementing an apply method that calls the apply methods of both of the consituent matrices, one after the other.
This class, like the Black Box archetype from which it is derived, is templatized by the vector type to which the matrix is applied. Both constituent matrices must also use this same vector type. For specification of the blackbox members see BlackboxArchetype.
Template parameter: must meet the vector requirement.General case
|
inline |
Constructor of C := A*B from blackbox matrices A and B.
Build the product A*B of any two black box matrices of compatible dimensions. Requires A.coldim() equals B.rowdim().
|
inline |
Constructor of C := (A_data)(*B_data).
This constructor creates a matrix that is a product of two black box matrices: A*B from pointers to them.
|
inline |
Copy constructor.
Copies the composed matrix (a small handle). The underlying two matrices are not copied.
M | matrix to be copied. |
|
inline |
Matrix * column vector product.
Applies B, then A.
x | constant reference to vector to contain input |
y | result |
|
inline |
row vector * matrix product .
Applies A^t then B^t.
x | constant reference to vector to contain input |
y |