CoCoALib-0.9905 date: 23 May 2007


CoCoA::ConstMatrixBase Class Reference

#include <matrix.H>

Inheritance diagram for CoCoA::ConstMatrixBase:

Inheritance graph
[legend]
Collaboration diagram for CoCoA::ConstMatrixBase:

Collaboration graph
[legend]
List of all members.

Public Types

typedef std::vector< RingElemvec

Public Member Functions

virtual const ringmyBaseRing () const =0
virtual std::size_t myNumRows () const =0
virtual std::size_t myNumCols () const =0
virtual ConstRefRingElem myEntry (std::size_t i, std::size_t j) const =0
virtual void myMulByRow (vec &lhs, const vec &v) const
 lhs = v*M -- vector-by-matrix product, default "dense" definition
virtual void myMulByCol (vec &lhs, const vec &v) const
 lhs = M*v -- matrix-by-vector product, default "dense" definition
virtual bool myIsZeroRow (std::size_t i) const
 tests whether row i is zero -- default "dense" definition
virtual bool myIsZeroCol (std::size_t j) const
 tests whether col j is zero -- default "dense" definition
virtual void myDet (RefRingElem d) const
virtual size_t myRank () const
virtual void myOutputSelf (std::ostream &out) const
virtual void myOutputSelf (OpenMathOutput &OMOut) const
virtual void myCheckIndices (std::size_t i, std::size_t j, const char *where="") const

Protected Member Functions

void myRefCountInc () const
void myRefCountDec () const
void myRefCountZero () const
 ConstMatrixBase ()
virtual ~ConstMatrixBase ()

Private Attributes

std::size_t myRefCount

Friends

class ConstMatrix

Detailed Description

Definition at line 116 of file matrix.H.


Member Typedef Documentation

typedef std::vector<RingElem> CoCoA::ConstMatrixBase::vec
 

Reimplemented in CoCoA::MatrixBase.

Definition at line 131 of file matrix.H.


Constructor & Destructor Documentation

CoCoA::ConstMatrixBase::ConstMatrixBase  )  [protected]
 

virtual CoCoA::ConstMatrixBase::~ConstMatrixBase  )  [protected, virtual]
 


Member Function Documentation

void CoCoA::ConstMatrixBase::myRefCountInc  )  const [inline, protected]
 

Definition at line 180 of file matrix.H.

References myRefCount.

Referenced by CoCoA::ConstMatrix::ConstMatrix().

void CoCoA::ConstMatrixBase::myRefCountDec  )  const [inline, protected]
 

Definition at line 181 of file matrix.H.

References myRefCount.

Referenced by CoCoA::ConstMatrix::~ConstMatrix().

void CoCoA::ConstMatrixBase::myRefCountZero  )  const [inline, protected]
 

Definition at line 182 of file matrix.H.

References myRefCount.

virtual const ring& CoCoA::ConstMatrixBase::myBaseRing  )  const [pure virtual]
 

virtual std::size_t CoCoA::ConstMatrixBase::myNumRows  )  const [pure virtual]
 

virtual std::size_t CoCoA::ConstMatrixBase::myNumCols  )  const [pure virtual]
 

virtual ConstRefRingElem CoCoA::ConstMatrixBase::myEntry std::size_t  i,
std::size_t  j
const [pure virtual]
 

virtual void CoCoA::ConstMatrixBase::myMulByRow vec lhs,
const vec v
const [virtual]
 

lhs = v*M -- vector-by-matrix product, default "dense" definition

virtual void CoCoA::ConstMatrixBase::myMulByCol vec lhs,
const vec v
const [virtual]
 

lhs = M*v -- matrix-by-vector product, default "dense" definition

virtual bool CoCoA::ConstMatrixBase::myIsZeroRow std::size_t  i  )  const [virtual]
 

tests whether row i is zero -- default "dense" definition

virtual bool CoCoA::ConstMatrixBase::myIsZeroCol std::size_t  j  )  const [virtual]
 

tests whether col j is zero -- default "dense" definition

virtual void CoCoA::ConstMatrixBase::myDet RefRingElem  d  )  const [virtual]
 

virtual size_t CoCoA::ConstMatrixBase::myRank  )  const [virtual]
 

virtual void CoCoA::ConstMatrixBase::myOutputSelf std::ostream &  out  )  const [virtual]
 

virtual void CoCoA::ConstMatrixBase::myOutputSelf OpenMathOutput OMOut  )  const [virtual]
 

virtual void CoCoA::ConstMatrixBase::myCheckIndices std::size_t  i,
std::size_t  j,
const char *  where = ""
const [virtual]
 


Friends And Related Function Documentation

friend class ConstMatrix [friend]
 

Definition at line 121 of file matrix.H.


Member Data Documentation

std::size_t CoCoA::ConstMatrixBase::myRefCount [mutable, private]
 

Definition at line 119 of file matrix.H.

Referenced by myRefCountDec(), myRefCountInc(), and myRefCountZero().


The documentation for this class was generated from the following file:
Generated on Wed May 23 13:44:29 2007 for CoCoALib by  doxygen 1.4.6