MIDAS  0.75
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Public Member Functions | Protected Attributes | List of all members
midaspace::Dmtrx Class Reference

#include <arrays.h>

Inheritance diagram for midaspace::Dmtrx:
midaspace::Xmtrx midaspace::Array

Public Member Functions

 Dmtrx (void)
 CONSTRUCTOR. More...
 
 Dmtrx (long r, long c)
 
 Dmtrx (const Dmtrx *src)
 
virtual ~Dmtrx ()
 DESTRUCTOR. More...
 
arrayTypedef give_arrayTypedef (void) const
 
void resize_ignore_vals (long r, long c)
 print yourself More...
 
double & operator() (long r, long c)
 
const double & operator() (long r, long c) const
 
double * give_ptr2val (long r=0, long c=0)
 
const double * give_ptr2val (long r=0, long c=0) const
 
void zero (void)
 
void copy_row (long r, const Dvctr &v)
 
void copy_row (long r, const Elem3D *v)
 
void beCopyOf (const double *src)
 
void beCopyOf (const Dmtrx &src)
 
void beCopyOf (const Dmtrx *src)
 
void be_tnsr (const Dvctr &src)
 
void be_transposition (const Dmtrx &src)
 
void be_mtrxMmtrx (const Dmtrx &A, const Dmtrx &B)
 
void tmsLeftBy (const Dmtrx &src)
 
void tmsRightBy (const Dmtrx &src)
 
double give_determinant (void) const
 
bool GaussSolve (Dvctr &x, const Dvctr &rhs)
 gaussian eliminatio More...
 
bool GaussSolve (Dvctr *x, const Dvctr *rhs, long nrhs)
 Solve a system of n equations in n unknowns using Gaussian Elimination with multiple rhs. More...
 
void print_tensor (FILE *stream, int precision, double absZero, bool zerorest) const
 print yourself More...
 
- Public Member Functions inherited from midaspace::Xmtrx
 Xmtrx (void)
 CONSTRUCTOR. More...
 
 Xmtrx (long r, long c)
 
virtual ~Xmtrx ()
 DESTRUCTOR. More...
 
long give_crows (void) const
 
long give_ccols (void) const
 
- Public Member Functions inherited from midaspace::Array
 Array ()
 CONSTRUCTOR. More...
 
virtual ~Array ()
 DESTRUCTOR. More...
 

Protected Attributes

double * a
 
- Protected Attributes inherited from midaspace::Xmtrx
long crow
 
long ccol
 
long asize
 

Detailed Description

Definition at line 771 of file arrays.h.

Constructor & Destructor Documentation

midaspace::Dmtrx::Dmtrx ( void  )
inline

CONSTRUCTOR.

Definition at line 778 of file arrays.h.

References a.

midaspace::Dmtrx::Dmtrx ( long  r,
long  c 
)
inline

Definition at line 779 of file arrays.h.

References a, and midaspace::Xmtrx::asize.

midaspace::Dmtrx::Dmtrx ( const Dmtrx src)
inline
virtual midaspace::Dmtrx::~Dmtrx ( )
inlinevirtual

DESTRUCTOR.

Definition at line 782 of file arrays.h.

References a.

Member Function Documentation

void midaspace::Dmtrx::be_mtrxMmtrx ( const Dmtrx A,
const Dmtrx B 
)
void midaspace::Dmtrx::be_tnsr ( const Dvctr src)
void midaspace::Dmtrx::be_transposition ( const Dmtrx src)
void midaspace::Dmtrx::beCopyOf ( const double *  src)
inline

Definition at line 808 of file arrays.h.

References a, midaspace::Xmtrx::ccol, and midaspace::Xmtrx::crow.

Referenced by GaussSolve(), tmsLeftBy(), and tmsRightBy().

void midaspace::Dmtrx::beCopyOf ( const Dmtrx src)
inline

Definition at line 809 of file arrays.h.

References beCopyOf(), and give_ptr2val().

Referenced by beCopyOf().

void midaspace::Dmtrx::beCopyOf ( const Dmtrx src)
inline

Definition at line 810 of file arrays.h.

References beCopyOf(), and give_ptr2val().

Referenced by beCopyOf().

void midaspace::Dmtrx::copy_row ( long  r,
const Dvctr v 
)
inline
void midaspace::Dmtrx::copy_row ( long  r,
const Elem3D v 
)
inline
bool midaspace::Dmtrx::GaussSolve ( Dvctr x,
const Dvctr rhs 
)

gaussian eliminatio

Solve a system of n equations in n unknowns using Gaussian Elimination.

Solve an equation in matrix form this * x = rhs. The result is returned in x, rhs is kept untouched. Return value is false if the system of equations is singular.

Definition at line 811 of file arrays.cpp.

References _errorr3, a, midaspace::Xmtrx::ccol, midaspace::Xmtrx::crow, and midaspace::Xvctr::give_size().

bool midaspace::Dmtrx::GaussSolve ( Dvctr x,
const Dvctr rhs,
long  nrhs 
)

Solve a system of n equations in n unknowns using Gaussian Elimination with multiple rhs.

Solve an equation in matrix form this * x = rhs. The result is returned in x, rhs is kept untouched. Return value is false if the system of equations is singular.

Definition at line 880 of file arrays.cpp.

References _errorr3, a, beCopyOf(), midaspace::Xmtrx::ccol, and midaspace::Xmtrx::crow.

arrayTypedef midaspace::Dmtrx::give_arrayTypedef ( void  ) const
inlinevirtual

Implements midaspace::Array.

Definition at line 784 of file arrays.h.

References midaspace::ATdouble.

double midaspace::Dmtrx::give_determinant ( void  ) const

Definition at line 797 of file arrays.cpp.

References _errorr3, a, and midaspace::Xmtrx::ccol.

Referenced by midaspace::ComponentGeometry3Dtetrahedron::initialize().

double* midaspace::Dmtrx::give_ptr2val ( long  r = 0,
long  c = 0 
)
inline
const double* midaspace::Dmtrx::give_ptr2val ( long  r = 0,
long  c = 0 
) const
inline

Definition at line 794 of file arrays.h.

References a, and midaspace::Xmtrx::ccol.

double& midaspace::Dmtrx::operator() ( long  r,
long  c 
)
inline

Definition at line 790 of file arrays.h.

References a, and midaspace::Xmtrx::ccol.

const double& midaspace::Dmtrx::operator() ( long  r,
long  c 
) const
inline

Definition at line 791 of file arrays.h.

References a, and midaspace::Xmtrx::ccol.

void midaspace::Dmtrx::print_tensor ( FILE *  stream,
int  precision,
double  absZero,
bool  zerorest 
) const
void midaspace::Dmtrx::resize_ignore_vals ( long  r,
long  c 
)
void midaspace::Dmtrx::tmsLeftBy ( const Dmtrx src)

Definition at line 776 of file arrays.cpp.

References be_mtrxMmtrx(), and beCopyOf().

void midaspace::Dmtrx::tmsRightBy ( const Dmtrx src)

Definition at line 784 of file arrays.cpp.

References be_mtrxMmtrx(), and beCopyOf().

void midaspace::Dmtrx::zero ( void  )
inline

Definition at line 799 of file arrays.h.

References a, midaspace::Xmtrx::ccol, and midaspace::Xmtrx::crow.

Referenced by be_mtrxMmtrx().

Member Data Documentation

double* midaspace::Dmtrx::a
protected

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