linbox  1
Public Member Functions
Submatrix< DenseMatrix< _Field >, VectorCategories::DenseVectorTag > Class Template Reference

#include <submatrix.h>

Inheritance diagram for Submatrix< DenseMatrix< _Field >, VectorCategories::DenseVectorTag >:
DenseSubmatrix< _Field::Element >

List of all members.

Public Member Functions

 Submatrix (const DenseMatrix< Field > *M, size_t row, size_t col, size_t rowdim, size_t coldim)
 Submatrix (const DenseMatrix< Field > &M, size_t row, size_t col, size_t rowdim, size_t coldim)
 Submatrix (const Submatrix< DenseMatrix< Field > > *SM, size_t row, size_t col, size_t rowdim, size_t coldim)
 Submatrix (const Submatrix< DenseMatrix< Field > > &SM, size_t row, size_t col, size_t rowdim, size_t coldim)
template<class Vect1 , class Vect2 >
Vect1 & apply (Vect1 &y, const Vect2 &x) const
template<class Vect1 , class Vect2 >
Vect1 & applyTranspose (Vect1 &y, const Vect2 &x) const
- Public Member Functions inherited from DenseSubmatrix< _Field::Element >
 DenseSubmatrix ()
 
  

 DenseSubmatrix (DenseMatrixBase< Element > &M, size_t row, size_t col, size_t rowdim, size_t coldim)
 DenseSubmatrix (DenseMatrixBase< Element > &M)
 DenseSubmatrix (const DenseSubmatrix< Element > &SM, size_t row, size_t col, size_t rowdim, size_t coldim)
 DenseSubmatrix (const DenseSubmatrix< Element > &SM)
DenseSubmatrixoperator= (const DenseSubmatrix< Element > &SM)
size_t rowdim () const
size_t coldim () const
std::istream & read (std::istream &file, const Field &field)
std::ostream & write (std::ostream &os, const Field &field, bool mapleFormat=false) const
void setEntry (size_t i, size_t j, const Element &a_ij)
Element & refEntry (size_t i, size_t j)
const Element & getEntry (size_t i, size_t j) const
Element & getEntry (Element &x, size_t i, size_t j)

Additional Inherited Members

- Public Types inherited from DenseSubmatrix< _Field::Element >
typedef DenseMatrixBase
< Element >::RowIterator 
RowIterator
 The row iterator gives the rows of the matrix in ascending order. Dereferencing the iterator yields a row vector in dense format.
typedef DenseMatrixBase
< Element >::ColIterator 
ColIterator
 The columns iterator gives the columns of the matrix in ascending order. Dereferencing the iterator yields a column vector in dense format.
- Protected Attributes inherited from DenseSubmatrix< _Field::Element >
DenseMatrixBase< Element > * _M

Detailed Description

template<class _Field>
class LinBox::Submatrix< DenseMatrix< _Field >, VectorCategories::DenseVectorTag >

special case for the submatrix of a dense matrix


Constructor & Destructor Documentation

Submatrix ( const DenseMatrix< Field > *  M,
size_t  row,
size_t  col,
size_t  rowdim,
size_t  coldim 
)
inline

Constructor from an existing DenseMatrix} and dimensions

Parameters:
MPointer to DenseMatrix} of which to construct submatrix
rowStarting row
colStarting column
rowdimRow dimension
coldimColumn dimension
Submatrix ( const DenseMatrix< Field > &  M,
size_t  row,
size_t  col,
size_t  rowdim,
size_t  coldim 
)
inline

Constructor from an existing DenseMatrix} and dimensions

Parameters:
Mreference to DenseMatrix} of which to construct submatrix
rowStarting row
colStarting column
rowdimRow dimension
coldimColumn dimension
Submatrix ( const Submatrix< DenseMatrix< Field > > *  SM,
size_t  row,
size_t  col,
size_t  rowdim,
size_t  coldim 
)
inline

Constructor from an existing submatrix and dimensions

Parameters:
SMpointer to Submatrix from which to construct submatrix
rowStarting row
colStarting column
rowdimRow dimension
coldimColumn dimension
Submatrix ( const Submatrix< DenseMatrix< Field > > &  SM,
size_t  row,
size_t  col,
size_t  rowdim,
size_t  coldim 
)
inline

Constructor from an existing submatrix and dimensions

Parameters:
SMreference to Submatrix from which to construct submatrix
rowStarting row
colStarting column
rowdimRow dimension
coldimColumn dimension

Member Function Documentation

Vect1& apply ( Vect1 &  y,
const Vect2 &  x 
) const
inline

Generic matrix-vector apply y = A * x. This version of apply allows use of arbitrary input and output vector * types.

Parameters:
yOutput vector
xInput vector
Returns:
Reference to output vector
Vect1& applyTranspose ( Vect1 &  y,
const Vect2 &  x 
) const
inline

Generic matrix-vector transpose apply y = A^T * x This version of applyTranspose allows use of arbitrary input and output vector types

Parameters:
yOutput vector
xInput vector
Returns:
Reference to output vector

The documentation for this class was generated from the following file: