linbox
Public Member Functions
Transpose< Blackbox > Class Template Reference

transpose matrix without copying. More...

#include <transpose.h>

Inherits BlackboxInterface.

Public Member Functions

 Transpose (Blackbox &A)
 Constructor from a black box. More...
 
 Transpose (const Transpose< Blackbox > &Mat)
 Copy constructor. More...
 
 ~Transpose (void)
 Destructor.
 
template<class Vector1 , class Vector2 >
Vector1 & apply (Vector1 &y, const Vector2 &x) const
 Application of BlackBox matrix. More...
 
template<class Vector1 , class Vector2 >
Vector1 & applyTranspose (Vector1 &y, const Vector2 &x) const
 Application of BlackBox matrix transpose. More...
 
size_t rowdim (void) const
 Retreive row dimensions of BlackBox matrix. More...
 
size_t coldim (void) const
 Retreive column dimensions of BlackBox matrix. More...
 

Detailed Description

template<class Blackbox>
class LinBox::Transpose< Blackbox >

transpose matrix without copying.

Parameters
VectorLinBox dense or sparse vector of field elements
Bug:
no write here. test-blackbox.h requires it
Examples:
examples/omp_block_rank.C, examples/omp_smithvalence.C, examples/smithvalence.C, and examples/valence.C.

Constructor & Destructor Documentation

Transpose ( Blackbox &  A)
inline

Constructor from a black box.

This constructor creates a matrix that is the transpose of a black box matrix A

Parameters
Apointer to black box matrix.
Transpose ( const Transpose< Blackbox > &  Mat)
inline

Copy constructor.

Parameters
Matconstant reference to compose black box matrix

Member Function Documentation

Vector1& apply ( Vector1 &  y,
const Vector2 &  x 
) const
inline

Application of BlackBox matrix.

y= (A*B)*x. Requires one vector conforming to the LinBox vector archetype. Required by abstract base class.

Returns
reference to vector y containing output.
Parameters
xconstant reference to vector to contain input
y
Vector1& applyTranspose ( Vector1 &  y,
const Vector2 &  x 
) const
inline

Application of BlackBox matrix transpose.

y= transpose(A*B)*x. Requires one vector conforming to the LinBox vector archetype. Required by abstract base class.

Returns
reference to vector y containing output.
Parameters
xconstant reference to vector to contain input
y
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: