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

#include <newmat.h>

Public Member Functions

 MatrixBandWidth (const int l, const int u)
 
 MatrixBandWidth (const int i)
 
MatrixBandWidth operator+ (const MatrixBandWidth &) const
 
MatrixBandWidth operator* (const MatrixBandWidth &) const
 
MatrixBandWidth minimum (const MatrixBandWidth &) const
 
MatrixBandWidth t () const
 
bool operator== (const MatrixBandWidth &bw) const
 
bool operator!= (const MatrixBandWidth &bw) const
 
int Upper () const
 
int Lower () const
 

Public Attributes

int lower
 
int upper
 

Detailed Description

Definition at line 189 of file newmat.h.

Constructor & Destructor Documentation

◆ MatrixBandWidth() [1/2]

MatrixBandWidth::MatrixBandWidth ( const int  l,
const int  u 
)
inline

Definition at line 194 of file newmat.h.

194 : lower(l), upper (u) {}

◆ MatrixBandWidth() [2/2]

MatrixBandWidth::MatrixBandWidth ( const int  i)
inline

Definition at line 195 of file newmat.h.

195 : lower(i), upper(i) {}

Member Function Documentation

◆ Lower()

int MatrixBandWidth::Lower ( ) const
inline

Definition at line 204 of file newmat.h.

Referenced by KPMatrix::BandWidth(), BandMatrix::ReSize(), and SymmetricBandMatrix::ReSize().

204 { return lower; }

◆ minimum()

MatrixBandWidth MatrixBandWidth::minimum ( const MatrixBandWidth bw) const

Definition at line 187 of file bandmat.cpp.

References lower, REPORT, and upper.

Referenced by SPMatrix::BandWidth().

188 {
189  REPORT
190  int l = bw.lower; int u = bw.upper;
191  if ((lower >= 0) && ( (l < 0) || (l > lower) )) l = lower;
192  if ((upper >= 0) && ( (u < 0) || (u > upper) )) u = upper;
193  return MatrixBandWidth(l,u);
194 }
MatrixBandWidth(const int l, const int u)
Definition: newmat.h:194
#define REPORT
Definition: bandmat.cpp:24

◆ operator!=()

bool MatrixBandWidth::operator!= ( const MatrixBandWidth bw) const
inline

Definition at line 202 of file newmat.h.

References operator==().

202 { return !operator==(bw); }
bool operator==(const MatrixBandWidth &bw) const
Definition: newmat.h:200

◆ operator*()

MatrixBandWidth MatrixBandWidth::operator* ( const MatrixBandWidth bw) const

Definition at line 178 of file bandmat.cpp.

References lower, REPORT, and upper.

179 {
180  REPORT
181  int l = bw.lower; int u = bw.upper;
182  l = (lower < 0 || l < 0) ? -1 : lower+l;
183  u = (upper < 0 || u < 0) ? -1 : upper+u;
184  return MatrixBandWidth(l,u);
185 }
MatrixBandWidth(const int l, const int u)
Definition: newmat.h:194
#define REPORT
Definition: bandmat.cpp:24

◆ operator+()

MatrixBandWidth MatrixBandWidth::operator+ ( const MatrixBandWidth bw) const

Definition at line 169 of file bandmat.cpp.

References lower, REPORT, and upper.

170 {
171  REPORT
172  int l = bw.lower; int u = bw.upper;
173  l = (lower < 0 || l < 0) ? -1 : (lower > l) ? lower : l;
174  u = (upper < 0 || u < 0) ? -1 : (upper > u) ? upper : u;
175  return MatrixBandWidth(l,u);
176 }
MatrixBandWidth(const int l, const int u)
Definition: newmat.h:194
#define REPORT
Definition: bandmat.cpp:24

◆ operator==()

bool MatrixBandWidth::operator== ( const MatrixBandWidth bw) const
inline

Definition at line 200 of file newmat.h.

References lower, and upper.

201  { return (lower == bw.lower) && (upper == bw.upper); }

◆ t()

MatrixBandWidth MatrixBandWidth::t ( ) const
inline

Definition at line 199 of file newmat.h.

Referenced by TransposedMatrix::BandWidth().

199 { return MatrixBandWidth(upper,lower); }
MatrixBandWidth(const int l, const int u)
Definition: newmat.h:194

◆ Upper()

int MatrixBandWidth::Upper ( ) const
inline

Definition at line 203 of file newmat.h.

Referenced by KPMatrix::BandWidth(), BandMatrix::ReSize(), and SymmetricBandMatrix::ReSize().

203 { return upper; }

Member Data Documentation

◆ lower

int MatrixBandWidth::lower

◆ upper

int MatrixBandWidth::upper

Definition at line 193 of file newmat.h.

Referenced by minimum(), MatrixType::New(), operator*(), operator+(), and operator==().


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