Virtual U.org
Get Personal Training on VU Today
    
Top shadow
 
 register/help
User Name:

Password:

NEWMAT::BandMatrix class Reference
Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

NEWMAT::BandMatrix Class Reference

#include <Newmat.h>

Inheritance diagram for NEWMAT::BandMatrix:

NEWMAT::GeneralMatrix NEWMAT::BaseMatrix Janitor NEWMAT::LowerBandMatrix NEWMAT::UpperBandMatrix List of all members.

Public Methods

 BandMatrix ()
 BandMatrix (int n, int lb, int ub)
 BandMatrix (const BaseMatrix &)
void operator= (const BaseMatrix &)
void operator= (Real f)
void operator= (const BandMatrix &m)
MatrixType Type () const
Real & operator() (int, int)
Real & element (int, int)
 BandMatrix (const BandMatrix &gm)
Real operator() (int, int) const
LogAndSign LogDeterminant () const
GeneralMatrixMakeSolver ()
Real Trace () const
Real SumSquare () const
Real SumAbsoluteValue () const
Real Sum () const
Real MaximumAbsoluteValue () const
void GetRow (MatrixRowCol &)
void GetCol (MatrixRowCol &)
void GetCol (MatrixColX &)
void RestoreCol (MatrixRowCol &)
void RestoreCol (MatrixColX &c)
void NextRow (MatrixRowCol &)
void ReSize (int, int, int)
MatrixBandWidth BandWidth () const
void SetParameters (const GeneralMatrix *)
MatrixInput operator<< (Real)
void operator<< (const Real *r)
void operator<< (const BaseMatrix &X)

Public Attributes

int lower
int upper

Protected Methods

void CornerClear () const

Constructor & Destructor Documentation

NEWMAT::BandMatrix::BandMatrix   [inline]
 

Definition at line 882 of file Newmat.h.

References CornerClear(), lower, and upper.

NEWMAT::BandMatrix::BandMatrix int    n,
int    lb,
int    ub
[inline]
 

Definition at line 883 of file Newmat.h.

References CornerClear(), and ReSize().

NEWMAT::BandMatrix::BandMatrix const BaseMatrix  
 

Definition at line 23 of file BANDMAT.CPP.

References CornerClear(), NEWMAT::GeneralMatrix::GetMatrix(), and REPORT.

NEWMAT::BandMatrix::BandMatrix const BandMatrix &    gm [inline]
 

Definition at line 896 of file Newmat.h.

References NEWMAT::GeneralMatrix::GetMatrix().


Member Function Documentation

MatrixBandWidth NEWMAT::BandMatrix::BandWidth   const [virtual]
 

Reimplemented from NEWMAT::BaseMatrix.

Definition at line 261 of file NEWMAT4.CPP.

References lower, and upper.

void NEWMAT::BandMatrix::CornerClear   const [protected]
 

Definition at line 49 of file BANDMAT.CPP.

References NEWMAT::BaseMatrix::i(), lower, RBD_COMMON::Real, REPORT, NEWMAT::GeneralMatrix::storage, NEWMAT::GeneralMatrix::store, and upper.

Referenced by BandMatrix(), NEWMAT::LowerBandMatrix::LowerBandMatrix(), MaximumAbsoluteValue(), NEWMAT::LowerBandMatrix::operator=(), NEWMAT::UpperBandMatrix::operator=(), operator=(), ReSize(), Sum(), SumAbsoluteValue(), SumSquare(), and NEWMAT::UpperBandMatrix::UpperBandMatrix().

Real & NEWMAT::BandMatrix::element int   ,
int   
 

Reimplemented in NEWMAT::UpperBandMatrix, and NEWMAT::LowerBandMatrix.

Definition at line 816 of file NEWMAT6.CPP.

References NEWMAT::BaseMatrix::i(), lower, NEWMAT::GeneralMatrix::ncols, NEWMAT::GeneralMatrix::nrows, RBD_COMMON::Real, NEWMAT::GeneralMatrix::store, and upper.

void NEWMAT::BandMatrix::GetCol MatrixColX   [virtual]
 

Implements NEWMAT::GeneralMatrix.

Definition at line 515 of file NEWMAT3.CPP.

References MatrixRowCol::cw, MatrixRowCol::data, MatrixRowCol::length, LoadOnEntry, lower, NEWMAT::GeneralMatrix::nrows, RBD_COMMON::Real, REPORT, MatrixRowCol::rowcol, MatrixRowCol::skip, MatrixRowCol::storage, NEWMAT::GeneralMatrix::store, MatrixColX::store, and upper.

void NEWMAT::BandMatrix::GetCol MatrixRowCol   [virtual]
 

Implements NEWMAT::GeneralMatrix.

Definition at line 491 of file NEWMAT3.CPP.

References MatrixRowCol::cw, MatrixRowCol::data, HaveStore, MatrixRowCol::length, LoadOnEntry, lower, NEWMAT::MatrixErrorNoSpace(), MONITOR_REAL_NEW, NEWMAT::GeneralMatrix::nrows, RBD_COMMON::Real, REPORT, MatrixRowCol::rowcol, MatrixRowCol::skip, MatrixRowCol::storage, NEWMAT::GeneralMatrix::store, StoreHere, and upper.

void NEWMAT::BandMatrix::GetRow MatrixRowCol   [virtual]
 

Implements NEWMAT::GeneralMatrix.

Definition at line 472 of file NEWMAT3.CPP.

References MatrixRowCol::data, MatrixRowCol::length, lower, NEWMAT::GeneralMatrix::ncols, REPORT, MatrixRowCol::rowcol, MatrixRowCol::skip, MatrixRowCol::storage, NEWMAT::GeneralMatrix::store, and upper.

LogAndSign NEWMAT::BandMatrix::LogDeterminant   const [virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Reimplemented in NEWMAT::UpperBandMatrix, and NEWMAT::LowerBandMatrix.

Definition at line 255 of file BANDMAT.CPP.

References REPORT.

GeneralMatrix * NEWMAT::BandMatrix::MakeSolver   [virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Reimplemented in NEWMAT::UpperBandMatrix, and NEWMAT::LowerBandMatrix.

Definition at line 138 of file BANDMAT.CPP.

References NEWMAT::MatrixErrorNoSpace(), and REPORT.

Real NEWMAT::BandMatrix::MaximumAbsoluteValue   const [inline, virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 906 of file Newmat.h.

References CornerClear(), and RBD_COMMON::Real.

void NEWMAT::BandMatrix::NextRow MatrixRowCol   [virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 483 of file NEWMAT3.CPP.

References MatrixRowCol::data, lower, NEWMAT::GeneralMatrix::ncols, REPORT, MatrixRowCol::rowcol, MatrixRowCol::skip, MatrixRowCol::storage, and upper.

Real NEWMAT::BandMatrix::operator() int   ,
int   
const
 

Definition at line 157 of file NEWMAT6.CPP.

References NEWMAT::BaseMatrix::i(), lower, NEWMAT::GeneralMatrix::ncols, NEWMAT::GeneralMatrix::nrows, RBD_COMMON::Real, NEWMAT::GeneralMatrix::store, and upper.

Real & NEWMAT::BandMatrix::operator() int   ,
int   
 

Reimplemented in NEWMAT::UpperBandMatrix, and NEWMAT::LowerBandMatrix.

Definition at line 74 of file NEWMAT6.CPP.

References NEWMAT::BaseMatrix::i(), lower, NEWMAT::GeneralMatrix::ncols, NEWMAT::GeneralMatrix::nrows, RBD_COMMON::Real, NEWMAT::GeneralMatrix::store, and upper.

void NEWMAT::BandMatrix::operator<< const BaseMatrix   X [inline]
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 921 of file Newmat.h.

References operator<<().

void NEWMAT::BandMatrix::operator<< const Real *    r
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 420 of file NEWMAT5.CPP.

References RBD_COMMON::Real.

MatrixInput NEWMAT::BandMatrix::operator<< Real   
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 415 of file NEWMAT5.CPP.

References RBD_COMMON::Real.

void NEWMAT::BandMatrix::operator= const BandMatrix &    m [inline]
 

Definition at line 888 of file Newmat.h.

References operator=().

void NEWMAT::BandMatrix::operator= Real    f [inline]
 

Reimplemented from NEWMAT::GeneralMatrix.

Reimplemented in NEWMAT::UpperBandMatrix, and NEWMAT::LowerBandMatrix.

Definition at line 887 of file Newmat.h.

References RBD_COMMON::Real.

void NEWMAT::BandMatrix::operator= const BaseMatrix  
 

Reimplemented in NEWMAT::UpperBandMatrix, and NEWMAT::LowerBandMatrix.

Definition at line 43 of file BANDMAT.CPP.

References CornerClear(), NEWMAT::GeneralMatrix::Eq(), and REPORT.

Referenced by operator=().

void NEWMAT::BandMatrix::ReSize int   ,
int   ,
int   
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 35 of file BANDMAT.CPP.

References CornerClear(), lower, REPORT, and upper.

Referenced by BandMatrix().

void NEWMAT::BandMatrix::RestoreCol MatrixColX   c [inline, virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 912 of file Newmat.h.

References RestoreCol().

void NEWMAT::BandMatrix::RestoreCol MatrixRowCol   [virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 531 of file NEWMAT3.CPP.

References MatrixRowCol::data, lower, RBD_COMMON::Real, REPORT, MatrixRowCol::rowcol, MatrixRowCol::storage, NEWMAT::GeneralMatrix::store, and upper.

Referenced by RestoreCol().

void NEWMAT::BandMatrix::SetParameters const GeneralMatrix   [virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 30 of file BANDMAT.CPP.

References NEWMAT::BaseMatrix::BandWidth(), NEWMAT::MatrixBandWidth::lower, lower, NEWMAT::MatrixBandWidth::upper, and upper.

Real NEWMAT::BandMatrix::Sum   const [inline, virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 904 of file Newmat.h.

References CornerClear(), and RBD_COMMON::Real.

Real NEWMAT::BandMatrix::SumAbsoluteValue   const [inline, virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 902 of file Newmat.h.

References CornerClear(), and RBD_COMMON::Real.

Real NEWMAT::BandMatrix::SumSquare   const [inline, virtual]
 

Reimplemented from NEWMAT::GeneralMatrix.

Definition at line 901 of file Newmat.h.

References CornerClear(), and RBD_COMMON::Real.

Real NEWMAT::BandMatrix::Trace   const [virtual]
 

Reimplemented from NEWMAT::BaseMatrix.

Definition at line 269 of file NEWMAT8.CPP.

References NEWMAT::BaseMatrix::i(), lower, NEWMAT::GeneralMatrix::nrows, RBD_COMMON::Real, REPORT, NEWMAT::GeneralMatrix::store, and upper.

MatrixType NEWMAT::BandMatrix::Type   const [virtual]
 

Implements NEWMAT::GeneralMatrix.

Reimplemented in NEWMAT::UpperBandMatrix, and NEWMAT::LowerBandMatrix.

Definition at line 253 of file NEWMAT4.CPP.


Member Data Documentation

int NEWMAT::BandMatrix::lower
 

Definition at line 881 of file Newmat.h.

Referenced by BandMatrix(), BandWidth(), CornerClear(), NEWMAT::LowerBandMatrix::element(), element(), GetCol(), GetRow(), NEWMAT::LowerBandMatrix::LogDeterminant(), NextRow(), NEWMAT::LowerBandMatrix::operator()(), operator()(), ReSize(), RestoreCol(), SetParameters(), NEWMAT::LowerBandMatrix::Solver(), and Trace().

int NEWMAT::BandMatrix::upper
 

Definition at line 881 of file Newmat.h.

Referenced by BandMatrix(), BandWidth(), CornerClear(), NEWMAT::UpperBandMatrix::element(), element(), GetCol(), GetRow(), NEWMAT::UpperBandMatrix::LogDeterminant(), NextRow(), NEWMAT::UpperBandMatrix::operator()(), operator()(), ReSize(), RestoreCol(), SetParameters(), NEWMAT::UpperBandMatrix::Solver(), and Trace().


The documentation for this class was generated from the following files:
Generated on Fri Aug 23 01:39:49 2002 for VirtualU by doxygen1.2.17