HQP  1.9.6
Omu_Jacobian Class Reference

Matrix extended with structural information for a Jacobian. More...

#include <Omu_Dependents.h>

Inheritance diagram for Omu_Jacobian:
[legend]

Public Member Functions

 Omu_Jacobian ()
 Create an empty matrix. More...
 
 ~Omu_Jacobian ()
 Free memory. More...
 
Query properties of Jacobian matrix.

The properties are checked with analyze_struct().

bool is_zero () const
 zero matrix
 
bool is_diagonal () const
 diagonal matrix
 
bool is_ident () const
 identity matrix
 
bool is_scalar_constant () const
 constant scalar matrix (is_constant and is_diagonal and J[i][i]==J[0][0], i = 1,...,min(nrows,ncols)-1)
 
bool is_constant () const
 constant matrix
 
int sbw () const
 semi-bandwidth, i.e. More...
 
int sbw_lower () const
 lower semi-bandwidth
 
int sbw_upper () const
 upper semi-bandwidth
 
bool is_zero_row (int i) const
 row i is zero
 
bool is_zero_column (int j) const
 column j is zero
 
- Public Member Functions inherited from Mesch::MATP
 MATP ()
 
 MATP (MAT *cm)
 
MAT * operator= (MAT *nm)
 
Real * operator[] (int i)
 
MAT * operator-> ()
 
 operator MAT * ()
 
 operator const MAT * ()
 
const Real * operator[] (int i) const
 
const MAT * operator-> () const
 
 operator const MAT * () const
 

Protected Member Functions

void size (int nrows, int ncols)
 Allocate and initialize Jacobian. More...
 
void adapt_size (int nrows)
 Resize dimension without reinitializing memory. More...
 
void analyze_struct (bool is_constant)
 Obtain properties for current matrix. More...
 

Protected Attributes

bool _is_zero
 
bool _is_ident
 
bool _is_scalar_constant
 
bool _is_constant
 
int _sbw_lower
 
int _sbw_upper
 
IVECP _zero_rows
 
IVECP _zero_cols
 
- Protected Attributes inherited from Mesch::MATP
MAT * _m
 wrapped MAT*
 

Friends

class Omu_DepVec
 

Detailed Description

Matrix extended with structural information for a Jacobian.

Constructor & Destructor Documentation

Omu_Jacobian::Omu_Jacobian ( )

Create an empty matrix.

Omu_Jacobian::~Omu_Jacobian ( )

Free memory.

Member Function Documentation

void Omu_Jacobian::adapt_size ( int  nrows)
protected

Resize dimension without reinitializing memory.

Argument nrows must not be larger than allocated nrows.

void Omu_Jacobian::analyze_struct ( bool  is_constant)
protected

Obtain properties for current matrix.

int Omu_Jacobian::sbw ( ) const
inline

semi-bandwidth, i.e.

number of side diagonals

References max.

void Omu_Jacobian::size ( int  nrows,
int  ncols 
)
protected

Allocate and initialize Jacobian.


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