OSSIM - Open Source Software Image Map  Version 1.9.0 (20180803)
Public Member Functions | Private Member Functions | List of all members
ColumnVector Class Reference

#include <newmat.h>

Inheritance diagram for ColumnVector:
Matrix GeneralMatrix BaseMatrix

Public Member Functions

 ColumnVector ()
 
 ~ColumnVector ()
 
 ColumnVector (ArrayLengthSpecifier n)
 
 ColumnVector (const BaseMatrix &)
 
 ColumnVector (const ColumnVector &gm)
 
void operator= (const BaseMatrix &)
 
void operator= (Real f)
 
void operator= (const ColumnVector &m)
 
Real & operator() (int)
 
Real & element (int)
 
Real operator() (int) const
 
Real element (int) const
 
MatrixType Type () const
 
GeneralMatrixTranspose (TransposedMatrix *, MatrixType)
 
void ReSize (int)
 
void ReSize (int, int)
 
void ReSize (const GeneralMatrix &A)
 
Realnric () const
 
void CleanUp ()
 
void MiniCleanUp ()
 
void operator+= (const Matrix &M)
 
void operator-= (const Matrix &M)
 
void operator+= (Real f)
 
void operator-= (Real f)
 
- Public Member Functions inherited from Matrix
 Matrix ()
 
 ~Matrix ()
 
 Matrix (int, int)
 
 Matrix (const BaseMatrix &)
 
void operator= (const BaseMatrix &)
 
void operator= (Real f)
 
void operator= (const Matrix &m)
 
Real & operator() (int, int)
 
Real & element (int, int)
 
Real operator() (int, int) const
 
Real element (int, int) const
 
 Matrix (const Matrix &gm)
 
GeneralMatrixMakeSolver ()
 
Real Trace () const
 
void GetRow (MatrixRowCol &)
 
void GetCol (MatrixRowCol &)
 
void GetCol (MatrixColX &)
 
void RestoreCol (MatrixRowCol &)
 
void RestoreCol (MatrixColX &)
 
void NextRow (MatrixRowCol &)
 
void NextCol (MatrixRowCol &)
 
void NextCol (MatrixColX &)
 
Real MaximumAbsoluteValue2 (int &i, int &j) const
 
Real MinimumAbsoluteValue2 (int &i, int &j) const
 
Real Maximum2 (int &i, int &j) const
 
Real Minimum2 (int &i, int &j) const
 
void operator+= (const Matrix &M)
 
void operator-= (const Matrix &M)
 
void operator+= (Real f)
 
void operator-= (Real f)
 
- Public Member Functions inherited from GeneralMatrix
GeneralMatrixEvaluate (MatrixType mt=MatrixTypeUnSp)
 
int Nrows () const
 
int Ncols () const
 
int Storage () const
 
RealStore () 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 void Solver (MatrixColX &, const MatrixColX &)
 
virtual void RestoreRow (MatrixRowCol &)
 
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 MinimumAbsoluteValue () const
 
Real Maximum () const
 
Real Minimum () 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)
 
MatrixInput operator<< (Real)
 
MatrixInput operator<< (int f)
 
- Public Member Functions inherited from BaseMatrix
AddedMatrix operator+ (const BaseMatrix &) const
 
MultipliedMatrix operator* (const BaseMatrix &) const
 
SubtractedMatrix operator- (const BaseMatrix &) const
 
ConcatenatedMatrix operator| (const BaseMatrix &) const
 
StackedMatrix operator & (const BaseMatrix &) const
 
ShiftedMatrix operator+ (Real) const
 
ScaledMatrix operator* (Real) const
 
ScaledMatrix operator/ (Real) const
 
ShiftedMatrix operator- (Real) const
 
TransposedMatrix t () const
 
NegatedMatrix operator- () const
 
ReversedMatrix Reverse () const
 
InvertedMatrix i () const
 
RowedMatrix AsRow () const
 
ColedMatrix AsColumn () const
 
DiagedMatrix AsDiagonal () const
 
MatedMatrix AsMatrix (int, int) const
 
GetSubMatrix SubMatrix (int, int, int, int) const
 
GetSubMatrix SymSubMatrix (int, int) const
 
GetSubMatrix Row (int) const
 
GetSubMatrix Rows (int, int) const
 
GetSubMatrix Column (int) const
 
GetSubMatrix Columns (int, int) const
 
Real AsScalar () const
 
Real Determinant () const
 
Real NormFrobenius () const
 
Real Norm1 () const
 
Real NormInfinity () const
 
virtual MatrixBandWidth BandWidth () const
 
void IEQND () const
 

Private Member Functions

GeneralMatrixImage () const
 

Additional Inherited Members

- Protected Member Functions inherited from GeneralMatrix
 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
 
void CheckConversion (const BaseMatrix &)
 
void ReSize (int, int, int)
 
virtual short SimpleAddOK (const GeneralMatrix *)
 
void PlusEqual (const GeneralMatrix &gm)
 
void MinusEqual (const GeneralMatrix &gm)
 
void PlusEqual (Real f)
 
void MinusEqual (Real f)
 
- Protected Attributes inherited from GeneralMatrix
int tag
 
int nrows
 
int ncols
 
int storage
 
Realstore
 

Detailed Description

Definition at line 865 of file newmat.h.

Constructor & Destructor Documentation

◆ ColumnVector() [1/4]

ColumnVector::ColumnVector ( )
inline

Definition at line 869 of file newmat.h.

Referenced by Image().

869 :Matrix() { ncols = 1; }
Matrix()
Definition: newmat.h:547

◆ ~ColumnVector()

ColumnVector::~ColumnVector ( )
inline

Definition at line 870 of file newmat.h.

870 {}

◆ ColumnVector() [2/4]

ColumnVector::ColumnVector ( ArrayLengthSpecifier  n)
inline

Definition at line 871 of file newmat.h.

871 : Matrix(n.Value(),1) {}
Matrix()
Definition: newmat.h:547
os2<< "> n<< " > nendobj n

◆ ColumnVector() [3/4]

ColumnVector::ColumnVector ( const BaseMatrix M)

Definition at line 111 of file newmat4.cpp.

References GeneralMatrix::ncols, and REPORT.

111  : Matrix(M)
112 {
113  REPORT
114  if (ncols!=1)
115  {
116  Tracer tr("ColumnVector");
117  Throw(VectorException(*this));
118  }
119 }
Matrix()
Definition: newmat.h:547
#define REPORT
Definition: newmat4.cpp:19

◆ ColumnVector() [4/4]

ColumnVector::ColumnVector ( const ColumnVector gm)
inline

Definition at line 873 of file newmat.h.

873 :Matrix(gm) { GetMatrix(&gm); }
Matrix()
Definition: newmat.h:547
void GetMatrix(const GeneralMatrix *)
Definition: newmat4.cpp:610

Member Function Documentation

◆ CleanUp()

void ColumnVector::CleanUp ( )
virtual

Reimplemented from GeneralMatrix.

Definition at line 895 of file newmat4.cpp.

References GeneralMatrix::CleanUp(), GeneralMatrix::ncols, and REPORT.

Referenced by DCT_inverse(), DST_inverse(), and ossimAdjMapModel::~ossimAdjMapModel().

void CleanUp()
Definition: newmat4.cpp:874
#define REPORT
Definition: newmat4.cpp:19

◆ element() [1/2]

Real & ColumnVector::element ( int  m)

Definition at line 755 of file newmat6.cpp.

References REPORT.

756 {
757  REPORT
758  if (m<0 || m>= nrows) Throw(IndexException(m,*this,true));
759  return store[m];
760 }
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ element() [2/2]

Real ColumnVector::element ( int  m) const

Definition at line 762 of file newmat6.cpp.

References REPORT.

763 {
764  REPORT
765  if (m<0 || m>= nrows) Throw(IndexException(m,*this,true));
766  return store[m];
767 }
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ Image()

GeneralMatrix * ColumnVector::Image ( ) const
privatevirtual

Reimplemented from Matrix.

Definition at line 789 of file newmat4.cpp.

References ColumnVector(), MatrixErrorNoSpace(), and REPORT.

790 {
791  REPORT
792  GeneralMatrix* gm = new ColumnVector(*this); MatrixErrorNoSpace(gm);
793  return gm;
794 }
ColumnVector()
Definition: newmat.h:869
void MatrixErrorNoSpace(const void *)
Definition: newmatex.cpp:292
#define REPORT
Definition: newmat4.cpp:19

◆ MiniCleanUp()

void ColumnVector::MiniCleanUp ( )
inlinevirtual

Reimplemented from GeneralMatrix.

Definition at line 893 of file newmat.h.

893 { store = 0; storage = 0; nrows = 0; ncols = 1; tag = -1; }
Real * store
Definition: newmat.h:393
int storage
Definition: newmat.h:392

◆ nric()

Real* ColumnVector::nric ( ) const
inline

Definition at line 890 of file newmat.h.

891  { CheckStore(); return store-1; } // for use by NRIC
void CheckStore() const
Definition: newmat4.cpp:864
Real * store
Definition: newmat.h:393

◆ operator()() [1/2]

Real & ColumnVector::operator() ( int  m)

Definition at line 78 of file newmat6.cpp.

References REPORT.

79 {
80  REPORT
81  if (m<=0 || m> nrows) Throw(IndexException(m,*this));
82  return store[m-1];
83 }
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ operator()() [2/2]

Real ColumnVector::operator() ( int  m) const

Definition at line 190 of file newmat6.cpp.

References REPORT.

191 {
192  REPORT
193  if (m<=0 || m> nrows) Throw(IndexException(m,*this));
194  return store[m-1];
195 }
#define REPORT
Definition: newmat6.cpp:19
Real * store
Definition: newmat.h:393

◆ operator+=() [1/2]

void ColumnVector::operator+= ( const Matrix M)
inline

Definition at line 895 of file newmat.h.

895 { PlusEqual(M); }
void PlusEqual(const GeneralMatrix &gm)
Definition: newmat7.cpp:148

◆ operator+=() [2/2]

void ColumnVector::operator+= ( Real  f)
inline

Definition at line 897 of file newmat.h.

References GeneralMatrix::Add().

897 { GeneralMatrix::Add(f); }
void Add(GeneralMatrix *, Real)
Definition: newmat5.cpp:311

◆ operator-=() [1/2]

void ColumnVector::operator-= ( const Matrix M)
inline

Definition at line 896 of file newmat.h.

896 { MinusEqual(M); }
void MinusEqual(const GeneralMatrix &gm)
Definition: newmat7.cpp:178

◆ operator-=() [2/2]

void ColumnVector::operator-= ( Real  f)
inline

Definition at line 898 of file newmat.h.

References GeneralMatrix::Add().

898 { GeneralMatrix::Add(-f); }
void Add(GeneralMatrix *, Real)
Definition: newmat5.cpp:311

◆ operator=() [1/3]

void ColumnVector::operator= ( const BaseMatrix X)

Definition at line 378 of file newmat6.cpp.

References MatrixType::CV, and REPORT.

379 {
380  REPORT //CheckConversion(X);
381  // MatrixConversionCheck mcc;
382  Eq(X,MatrixType::CV);
383  if (ncols!=1)
384  { Tracer tr("ColumnVector(=)"); Throw(VectorException(*this)); }
385 }
#define REPORT
Definition: newmat6.cpp:19
void Eq(const BaseMatrix &, MatrixType)
Definition: newmat4.cpp:637

◆ operator=() [2/3]

void ColumnVector::operator= ( Real  f)
inline

Definition at line 875 of file newmat.h.

References GeneralMatrix::operator=().

void operator=(Real)
Definition: newmat6.cpp:342

◆ operator=() [3/3]

void ColumnVector::operator= ( const ColumnVector m)
inline

Definition at line 876 of file newmat.h.

876 { Eq(m); }
void Eq(const BaseMatrix &, MatrixType)
Definition: newmat4.cpp:637

◆ ReSize() [1/3]

void ColumnVector::ReSize ( int  nr)

Definition at line 262 of file newmat4.cpp.

References REPORT, and GeneralMatrix::ReSize().

Referenced by DCT_II(), DCT_inverse(), DST_II(), DST_inverse(), and ReSize().

263 { REPORT GeneralMatrix::ReSize(nr,1,nr); }
#define REPORT
Definition: newmat4.cpp:19
void ReSize(int, int, int)
Definition: newmat4.cpp:216

◆ ReSize() [2/3]

void ColumnVector::ReSize ( int  nr,
int  nc 
)
virtual

Reimplemented from Matrix.

Definition at line 272 of file newmat4.cpp.

References REPORT, and GeneralMatrix::ReSize().

273 {
274  Tracer tr("ColumnVector::ReSize");
275  if (nc != 1) Throw(VectorException(*this));
276  REPORT GeneralMatrix::ReSize(nr,1,nr);
277 }
#define REPORT
Definition: newmat4.cpp:19
void ReSize(int, int, int)
Definition: newmat4.cpp:216

◆ ReSize() [3/3]

void ColumnVector::ReSize ( const GeneralMatrix A)
virtual

Reimplemented from Matrix.

Definition at line 301 of file newmat4.cpp.

References A, REPORT, and ReSize().

302 { REPORT ReSize(A.Nrows(), A.Ncols()); }
#define A(r, c)
#define REPORT
Definition: newmat4.cpp:19
void ReSize(int)
Definition: newmat4.cpp:262

◆ Transpose()

GeneralMatrix * ColumnVector::Transpose ( TransposedMatrix ,
MatrixType  mt 
)
virtual

Reimplemented from GeneralMatrix.

Definition at line 60 of file newmat5.cpp.

References MatrixErrorNoSpace(), and REPORT.

61 {
62  REPORT
64  gmx->nrows = 1; gmx->ncols = gmx->storage = storage;
65  return BorrowStore(gmx,mt);
66 }
void MatrixErrorNoSpace(const void *)
Definition: newmatex.cpp:292
#define REPORT
Definition: newmat5.cpp:20
GeneralMatrix * BorrowStore(GeneralMatrix *, MatrixType)
Definition: newmat4.cpp:617
int storage
Definition: newmat.h:392
friend class RowVector
Definition: newmat.h:508

◆ Type()

MatrixType ColumnVector::Type ( ) const
virtual

Reimplemented from Matrix.

Definition at line 420 of file newmat4.cpp.

References MatrixType::CV.

420 { return MatrixType::CV; }

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