Tekkotsu Homepage
Demos
Overview
Downloads
Dev. Resources
Reference
Credits

NEWMAT::GeneralMatrix Class Reference

#include <newmat.h>

Inheritance diagram for NEWMAT::GeneralMatrix:

List of all members.


Detailed Description

Definition at line 386 of file newmat.h.


Public Member Functions

GeneralMatrixEvaluate (MatrixType mt=MatrixTypeUnSp)
virtual MatrixType Type () const =0
int Nrows () const
int Ncols () const
int Storage () const
Real * Store () const
int nrows () const
int ncols () const
int size () const
Real * data ()
const Real * data () const
const Real * const_data () const
virtual ~GeneralMatrix ()
void tDelete ()
bool reuse ()
void Protect ()
int Tag () const
bool IsZero () const
void Release ()
void Release (int t)
void ReleaseAndDelete ()
void operator<< (const Real *)
void operator<< (const int *)
void operator<< (const BaseMatrix &X)
void Inject (const GeneralMatrix &)
void operator+= (const BaseMatrix &)
void operator-= (const BaseMatrix &)
void operator *= (const BaseMatrix &)
void operator|= (const BaseMatrix &)
void operator &= (const BaseMatrix &)
void operator+= (Real)
void operator-= (Real r)
void operator *= (Real)
void operator/= (Real r)
virtual GeneralMatrixMakeSolver ()
virtual void Solver (MatrixColX &, const MatrixColX &)
virtual void GetRow (MatrixRowCol &)=0
virtual void RestoreRow (MatrixRowCol &)
virtual void NextRow (MatrixRowCol &)
virtual void GetCol (MatrixRowCol &)=0
virtual void GetCol (MatrixColX &)=0
virtual void RestoreCol (MatrixRowCol &)
virtual void RestoreCol (MatrixColX &)
virtual void NextCol (MatrixRowCol &)
virtual void NextCol (MatrixColX &)
Real SumSquare () const
Real SumAbsoluteValue () const
Real Sum () const
Real MaximumAbsoluteValue1 (int &i) const
Real MinimumAbsoluteValue1 (int &i) const
Real Maximum1 (int &i) const
Real Minimum1 (int &i) const
Real MaximumAbsoluteValue () const
Real MaximumAbsoluteValue2 (int &i, int &j) const
Real MinimumAbsoluteValue () const
Real MinimumAbsoluteValue2 (int &i, int &j) const
Real Maximum () const
Real Maximum2 (int &i, int &j) const
Real Minimum () const
Real Minimum2 (int &i, int &j) const
LogAndSign LogDeterminant () const
virtual bool IsEqual (const GeneralMatrix &) const
void CheckStore () const
virtual void SetParameters (const GeneralMatrix *)
 operator ReturnMatrix () const
ReturnMatrix ForReturn () const
virtual bool SameStorageType (const GeneralMatrix &A) const
virtual void ReSizeForAdd (const GeneralMatrix &A, const GeneralMatrix &B)
virtual void ReSizeForSP (const GeneralMatrix &A, const GeneralMatrix &B)
virtual void ReSize (const GeneralMatrix &A)
MatrixInput operator<< (Real)
MatrixInput operator<< (int f)
void CleanUp ()

Protected Member Functions

 GeneralMatrix ()
 GeneralMatrix (ArrayLengthSpecifier)
void Add (GeneralMatrix *, Real)
void Add (Real)
void NegAdd (GeneralMatrix *, Real)
void NegAdd (Real)
void Multiply (GeneralMatrix *, Real)
void Multiply (Real)
void Negate (GeneralMatrix *)
void Negate ()
void ReverseElements ()
void ReverseElements (GeneralMatrix *)
void operator= (Real)
Real * GetStore ()
GeneralMatrixBorrowStore (GeneralMatrix *, MatrixType)
void GetMatrix (const GeneralMatrix *)
void Eq (const BaseMatrix &, MatrixType)
void Eq (const GeneralMatrix &)
void Eq (const BaseMatrix &, MatrixType, bool)
void Eq2 (const BaseMatrix &, MatrixType)
int search (const BaseMatrix *) const
virtual GeneralMatrixTranspose (TransposedMatrix *, MatrixType)
void CheckConversion (const BaseMatrix &)
void ReSize (int, int, int)
virtual short SimpleAddOK (const GeneralMatrix *)
virtual void MiniCleanUp ()
void PlusEqual (const GeneralMatrix &gm)
void MinusEqual (const GeneralMatrix &gm)
void PlusEqual (Real f)
void MinusEqual (Real f)
void swap (GeneralMatrix &gm)

Protected Attributes

int tag
int nrows_value
int ncols_value
int storage
Real * store

Private Member Functions

virtual GeneralMatrixImage () const

Friends

class Matrix
class SquareMatrix
class nricMatrix
class SymmetricMatrix
class UpperTriangularMatrix
class LowerTriangularMatrix
class DiagonalMatrix
class CroutMatrix
class RowVector
class ColumnVector
class BandMatrix
class LowerBandMatrix
class UpperBandMatrix
class SymmetricBandMatrix
class BaseMatrix
class AddedMatrix
class MultipliedMatrix
class SubtractedMatrix
class SPMatrix
class KPMatrix
class ConcatenatedMatrix
class StackedMatrix
class SolvedMatrix
class ShiftedMatrix
class NegShiftedMatrix
class ScaledMatrix
class TransposedMatrix
class ReversedMatrix
class NegatedMatrix
class InvertedMatrix
class RowedMatrix
class ColedMatrix
class DiagedMatrix
class MatedMatrix
class GetSubMatrix
class ReturnMatrix
class LinearEquationSolver
class GenericMatrix

Constructor & Destructor Documentation

NEWMAT::GeneralMatrix::GeneralMatrix (  )  [protected]

Definition at line 33 of file newmat4.cpp.

NEWMAT::GeneralMatrix::GeneralMatrix ( ArrayLengthSpecifier  s  )  [protected]

Definition at line 36 of file newmat4.cpp.

NEWMAT::GeneralMatrix::~GeneralMatrix (  )  [virtual]

Definition at line 161 of file newmat4.cpp.


Member Function Documentation

void NEWMAT::GeneralMatrix::Add ( GeneralMatrix gm1,
Real  f 
) [protected]

Definition at line 311 of file newmat5.cpp.

Referenced by NEWMAT::ShiftedMatrix::Evaluate().

void NEWMAT::GeneralMatrix::Add ( Real  f  )  [protected]

Definition at line 320 of file newmat5.cpp.

void NEWMAT::GeneralMatrix::NegAdd ( GeneralMatrix gm1,
Real  f 
) [protected]

Definition at line 328 of file newmat5.cpp.

Referenced by NEWMAT::NegShiftedMatrix::Evaluate().

void NEWMAT::GeneralMatrix::NegAdd ( Real  f  )  [protected]

Definition at line 337 of file newmat5.cpp.

void NEWMAT::GeneralMatrix::Multiply ( GeneralMatrix gm1,
Real  f 
) [protected]

Definition at line 368 of file newmat5.cpp.

Referenced by NEWMAT::ScaledMatrix::Evaluate().

void NEWMAT::GeneralMatrix::Multiply ( Real  f  )  [protected]

Definition at line 377 of file newmat5.cpp.

void NEWMAT::GeneralMatrix::Negate ( GeneralMatrix gm1  )  [protected]

Definition at line 349 of file newmat5.cpp.

Referenced by NEWMAT::NegatedMatrix::Evaluate().

void NEWMAT::GeneralMatrix::Negate (  )  [protected]

Definition at line 359 of file newmat5.cpp.

void NEWMAT::GeneralMatrix::ReverseElements (  )  [protected]

Definition at line 472 of file newmat5.cpp.

Referenced by NEWMAT::ReversedMatrix::Evaluate().

void NEWMAT::GeneralMatrix::ReverseElements ( GeneralMatrix gm  )  [protected]

Definition at line 464 of file newmat5.cpp.

Real * NEWMAT::GeneralMatrix::GetStore (  )  [protected]

Definition at line 600 of file newmat4.cpp.

Referenced by BorrowStore().

void NEWMAT::GeneralMatrix::Eq ( const GeneralMatrix X  )  [protected]

Definition at line 689 of file newmat4.cpp.

void NEWMAT::GeneralMatrix::Eq ( const BaseMatrix X,
MatrixType  mt,
bool  ldok 
) [protected]

Definition at line 707 of file newmat4.cpp.

void NEWMAT::GeneralMatrix::Eq2 ( const BaseMatrix X,
MatrixType  mt 
) [protected]

Definition at line 714 of file newmat4.cpp.

Referenced by operator &=(), operator *=(), operator+=(), operator-=(), and operator|=().

int NEWMAT::GeneralMatrix::search ( const BaseMatrix s  )  const [protected, virtual]

Implements NEWMAT::BaseMatrix.

Definition at line 408 of file newmat4.cpp.

Referenced by NEWMAT::GenericMatrix::search().

GeneralMatrix * NEWMAT::GeneralMatrix::Transpose ( TransposedMatrix tm,
MatrixType  mt 
) [protected, virtual]

void NEWMAT::GeneralMatrix::CheckConversion ( const BaseMatrix  )  [protected]

virtual short NEWMAT::GeneralMatrix::SimpleAddOK ( const GeneralMatrix  )  [inline, protected, virtual]

virtual void NEWMAT::GeneralMatrix::MiniCleanUp (  )  [inline, protected, virtual]

void NEWMAT::GeneralMatrix::PlusEqual ( Real  f  )  [protected]

void NEWMAT::GeneralMatrix::MinusEqual ( Real  f  )  [protected]

void NEWMAT::GeneralMatrix::swap ( GeneralMatrix gm  )  [protected]

Definition at line 1039 of file newmat4.cpp.

int NEWMAT::GeneralMatrix::Nrows (  )  const [inline]

Definition at line 432 of file newmat.h.

Referenced by NEWMAT::AddDS(), NEWMAT::KPMatrix::BandWidth(), NEWMAT::Cholesky(), NEWMAT::CrossProduct(), NEWMAT::CrossProductColumns(), NEWMAT::CrossProductRows(), NEWMAT::DCT(), NEWMAT::DCT_II(), NEWMAT::DCT_II_inverse(), NEWMAT::DCT_inverse(), NEWMAT::DowndateCholesky(), NEWMAT::DST(), NEWMAT::DST_II(), NEWMAT::DST_II_inverse(), NEWMAT::DST_inverse(), NEWMAT::StackedMatrix::Evaluate(), NEWMAT::ConcatenatedMatrix::Evaluate(), NEWMAT::SPMatrix::Evaluate(), NEWMAT::SubtractedMatrix::Evaluate(), NEWMAT::AddedMatrix::Evaluate(), NEWMAT::GetSubMatrix::Evaluate(), NEWMAT::ReversedMatrix::Evaluate(), NEWMAT::NegatedMatrix::Evaluate(), NEWMAT::ScaledMatrix::Evaluate(), NEWMAT::NegShiftedMatrix::Evaluate(), NEWMAT::ShiftedMatrix::Evaluate(), NEWMAT::FFT(), NEWMAT::FFT2(), NEWMAT::FFT2I(), NEWMAT::FFTI(), NEWMAT::fftstep(), NEWMAT::NonLinearLeastSquares::Fit(), NEWMAT::FindMaximum2::Fit(), NEWMAT::GeneralKP(), NEWMAT::GeneralMult(), NEWMAT::GeneralMult1(), NEWMAT::GeneralMult2(), NEWMAT::GeneralSolv(), NEWMAT::GeneralSolvI(), GetMatrix(), NEWMAT::GetSubMatrix::Inject(), NEWMAT::BandLUMatrix::IsEqual(), NEWMAT::Jacobi(), NEWMAT::LeftCircularUpdateCholesky(), NEWMAT::MLE_D_FI::MakeCovariance(), NEWMAT::NonLinearLeastSquares::MakeCovariance(), NEWMAT::MatrixDetails(), Maximum2(), MaximumAbsoluteValue2(), Minimum2(), MinimumAbsoluteValue2(), NEWMAT::mmMult(), NEWMAT::BaseMatrix::NormInfinity(), NEWMAT::GetSubMatrix::operator+=(), NEWMAT::GetSubMatrix::operator-=(), NEWMAT::GetSubMatrix::operator<<(), NEWMAT::operator<<(), NEWMAT::GetSubMatrix::operator=(), NEWMAT::operator==(), NEWMAT::QRZ(), NEWMAT::QRZT(), NEWMAT::RealFFT(), NEWMAT::RealFFTI(), NEWMAT::RectMatrixCol::Reset(), NEWMAT::IdentityMatrix::ReSize(), NEWMAT::LowerTriangularMatrix::ReSize(), NEWMAT::UpperTriangularMatrix::ReSize(), NEWMAT::DiagonalMatrix::ReSize(), NEWMAT::SymmetricMatrix::ReSize(), NEWMAT::RowVector::ReSize(), NEWMAT::ColumnVector::ReSize(), NEWMAT::nricMatrix::ReSize(), NEWMAT::SquareMatrix::ReSize(), NEWMAT::Matrix::ReSize(), NEWMAT::SymmetricBandMatrix::ReSize(), NEWMAT::BandMatrix::ReSize(), NEWMAT::SymmetricBandMatrix::ReSizeForAdd(), NEWMAT::BandMatrix::ReSizeForAdd(), NEWMAT::SymmetricBandMatrix::ReSizeForSP(), NEWMAT::BandMatrix::ReSizeForSP(), NEWMAT::ReverseSubtractDS(), NEWMAT::RightCircularUpdateCholesky(), NEWMAT::GetSubMatrix::SetUpLHS(), NEWMAT::SortSV(), NEWMAT::SPDS(), NEWMAT::SubtractDS(), NEWMAT::SVD(), NEWMAT::tql1(), NEWMAT::tql2(), NEWMAT::tred2(), NEWMAT::tred3(), NEWMAT::UpdateCholesky(), NEWMAT::UpdateQRZ(), and NEWMAT::UpdateQRZT().

int NEWMAT::GeneralMatrix::Ncols (  )  const [inline]

Definition at line 433 of file newmat.h.

Referenced by NEWMAT::CrossProduct(), NEWMAT::CrossProductColumns(), NEWMAT::CrossProductRows(), NEWMAT::StackedMatrix::Evaluate(), NEWMAT::ConcatenatedMatrix::Evaluate(), NEWMAT::SPMatrix::Evaluate(), NEWMAT::SubtractedMatrix::Evaluate(), NEWMAT::AddedMatrix::Evaluate(), NEWMAT::GetSubMatrix::Evaluate(), NEWMAT::ReversedMatrix::Evaluate(), NEWMAT::NegatedMatrix::Evaluate(), NEWMAT::ScaledMatrix::Evaluate(), NEWMAT::NegShiftedMatrix::Evaluate(), NEWMAT::ShiftedMatrix::Evaluate(), NEWMAT::FFT2(), NEWMAT::FFT2I(), NEWMAT::GeneralKP(), NEWMAT::GeneralMult(), NEWMAT::GeneralMult1(), NEWMAT::GeneralMult2(), NEWMAT::GeneralSolv(), NEWMAT::GeneralSolvI(), GetMatrix(), NEWMAT::GetSubMatrix::Inject(), NEWMAT::BandLUMatrix::IsEqual(), NEWMAT::MatrixDetails(), NEWMAT::Matrix::Maximum2(), NEWMAT::Matrix::MaximumAbsoluteValue2(), NEWMAT::Matrix::Minimum2(), NEWMAT::Matrix::MinimumAbsoluteValue2(), NEWMAT::mmMult(), NEWMAT::BaseMatrix::Norm1(), NEWMAT::GetSubMatrix::operator+=(), NEWMAT::GetSubMatrix::operator-=(), NEWMAT::operator<<(), NEWMAT::GetSubMatrix::operator<<(), NEWMAT::GetSubMatrix::operator=(), NEWMAT::operator==(), NEWMAT::QRZ(), NEWMAT::QRZT(), NEWMAT::RectMatrixCol::Reset(), NEWMAT::RectMatrixRow::Reset(), NEWMAT::IdentityMatrix::ReSize(), NEWMAT::LowerTriangularMatrix::ReSize(), NEWMAT::UpperTriangularMatrix::ReSize(), NEWMAT::DiagonalMatrix::ReSize(), NEWMAT::SymmetricMatrix::ReSize(), NEWMAT::RowVector::ReSize(), NEWMAT::ColumnVector::ReSize(), NEWMAT::nricMatrix::ReSize(), NEWMAT::SquareMatrix::ReSize(), NEWMAT::Matrix::ReSize(), NEWMAT::SymmetricBandMatrix::ReSize(), NEWMAT::BandMatrix::ReSize(), NEWMAT::GetSubMatrix::SetUpLHS(), NEWMAT::SortSV(), NEWMAT::SVD(), NEWMAT::UpdateQRZ(), and NEWMAT::UpdateQRZT().

int NEWMAT::GeneralMatrix::nrows (  )  const [inline]

int NEWMAT::GeneralMatrix::ncols (  )  const [inline]

int NEWMAT::GeneralMatrix::size (  )  const [inline]

Definition at line 439 of file newmat.h.

Real* NEWMAT::GeneralMatrix::data (  )  [inline]

const Real* NEWMAT::GeneralMatrix::data (  )  const [inline]

Definition at line 441 of file newmat.h.

const Real* NEWMAT::GeneralMatrix::const_data (  )  const [inline]

Definition at line 442 of file newmat.h.