muMECH  1.0
Public Member Functions | Protected Attributes | List of all members
gelibspace::Dmtrx Class Reference

#include <arrays.h>

Inheritance diagram for gelibspace::Dmtrx:
gelibspace::Xmtrx gelibspace::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 gelibspace::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 gelibspace::Array
 Array ()
 CONSTRUCTOR. More...
 
virtual ~Array ()
 DESTRUCTOR. More...
 

Protected Attributes

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

Detailed Description

Definition at line 800 of file arrays.h.

Constructor & Destructor Documentation

gelibspace::Dmtrx::Dmtrx ( void  )
inline

CONSTRUCTOR.

Definition at line 807 of file arrays.h.

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

Definition at line 808 of file arrays.h.

gelibspace::Dmtrx::Dmtrx ( const Dmtrx src)
inline

Definition at line 809 of file arrays.h.

References a, and SRCCHCK.

virtual gelibspace::Dmtrx::~Dmtrx ( )
inlinevirtual

DESTRUCTOR.

Definition at line 811 of file arrays.h.

Member Function Documentation

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

Definition at line 837 of file arrays.h.

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

Definition at line 838 of file arrays.h.

References beCopyOf().

Referenced by beCopyOf().

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

Definition at line 839 of file arrays.h.

References beCopyOf(), give_ptr2val(), and gelibspace::Elem3D::x.

Referenced by beCopyOf().

void gelibspace::Dmtrx::copy_row ( long  r,
const Dvctr v 
)
inline
void gelibspace::Dmtrx::copy_row ( long  r,
const Elem3D v 
)
inline

Definition at line 835 of file arrays.h.

References gelibspace::Elem3D::x, gelibspace::Elem3D::y, and gelibspace::Elem3D::z.

bool gelibspace::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 842 of file arrays.cpp.

References _errorr3, gelibspace::MatriX::a, and gelibspace::Xvctr::give_size().

bool gelibspace::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 911 of file arrays.cpp.

References _errorr, _errorr3, gelibspace::MatriX::a, mumech::e(), and PYP.

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

Implements gelibspace::Array.

Definition at line 813 of file arrays.h.

References gelibspace::ATdouble.

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

Definition at line 828 of file arrays.cpp.

References _errorr3, and gelibspace::MatriX::a.

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

Definition at line 823 of file arrays.h.

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

Definition at line 819 of file arrays.h.

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

Definition at line 820 of file arrays.h.

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

print yourself

Definition at line 742 of file arrays.cpp.

References gelibspace::MatriX::a.

void gelibspace::Dmtrx::tmsLeftBy ( const Dmtrx src)

Definition at line 807 of file arrays.cpp.

References be_mtrxMmtrx().

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

Definition at line 815 of file arrays.cpp.

References be_mtrxMmtrx().

void gelibspace::Dmtrx::zero ( void  )
inline

Definition at line 828 of file arrays.h.

Member Data Documentation

double* gelibspace::Dmtrx::a
protected

Definition at line 803 of file arrays.h.

Referenced by Dmtrx().


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