Compose Class Template Reference
[linbox/blackbox]
#include <compose.h>
Inheritance diagram for Compose:
Detailed Description
template<class _Blackbox1, class _Blackbox2 = _Blackbox1>
class LinBox::Compose< _Blackbox1, _Blackbox2 >
General case.
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.
Member Typedef Documentation
Constructor & Destructor Documentation
|
|
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(). |
|
|
Constructor of C := (*A_ptr)*(*B_ptr). This constructor creates a matrix that is a product of two black box matrices: A*B from pointers to them. |
|
|
Copy constructor. Copies the composed matrix (a small handle). The underlying two matrices are not copied. |
Member Function Documentation
| OutVector& apply |
( |
OutVector & |
y, |
|
|
const InVector & |
x |
|
) |
const [inline] |
|
|
|
Matrix * column vector product. y= (A*B)*x. Applies B, then A. - 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] |
|
|
|
row vector * matrix produc y= transpose(A*B)*x. Applies A^t then B^t. - Returns:
- reference to vector y containing output.
- Parameters:
-
| x | constant reference to vector to contain input |
|
| size_t rowdim |
( |
void |
|
) |
const [inline] |
|
| size_t coldim |
( |
void |
|
) |
const [inline] |
|
| const Field& field |
( |
|
) |
const [inline] |
|
| const Blackbox1* getLeftPtr |
( |
|
) |
const [inline] |
|
| const Blackbox2* getRightPtr |
( |
|
) |
const [inline] |
|
Field Documentation
Generated on Fri Jul 8 10:29:47 2005 for linbox by
1.3.7