#include <arrays.h>
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... | |
![]() | |
Xmtrx (void) | |
CONSTRUCTOR. More... | |
Xmtrx (long r, long c) | |
virtual | ~Xmtrx () |
DESTRUCTOR. More... | |
long | give_crows (void) const |
long | give_ccols (void) const |
![]() | |
Array () | |
CONSTRUCTOR. More... | |
virtual | ~Array () |
DESTRUCTOR. More... | |
Protected Attributes | |
double * | a |
![]() | |
long | crow |
long | ccol |
long | asize |
|
inline |
|
inline |
Definition at line 779 of file arrays.h.
References a, and midaspace::Xmtrx::asize.
|
inline |
Definition at line 780 of file arrays.h.
References a, midaspace::Xmtrx::asize, midaspace::Xmtrx::ccol, midaspace::Xmtrx::crow, and SRCCHCK.
|
inlinevirtual |
Definition at line 757 of file arrays.cpp.
References _errorr, a, midaspace::Xmtrx::ccol, midaspace::Xmtrx::crow, midaspace::Xmtrx::give_ccols(), midaspace::Xmtrx::give_crows(), give_ptr2val(), resize_ignore_vals(), and zero().
Referenced by tmsLeftBy(), and tmsRightBy().
void midaspace::Dmtrx::be_tnsr | ( | const Dvctr & | src | ) |
Definition at line 729 of file arrays.cpp.
References _errorr, a, midaspace::Dvctr::give_ptr2val(), midaspace::Xvctr::give_size(), and resize_ignore_vals().
void midaspace::Dmtrx::be_transposition | ( | const Dmtrx & | src | ) |
Definition at line 745 of file arrays.cpp.
References a, midaspace::Xmtrx::ccol, midaspace::Xmtrx::crow, midaspace::Xmtrx::give_ccols(), midaspace::Xmtrx::give_crows(), give_ptr2val(), and resize_ignore_vals().
|
inline |
Definition at line 808 of file arrays.h.
References a, midaspace::Xmtrx::ccol, and midaspace::Xmtrx::crow.
Referenced by GaussSolve(), tmsLeftBy(), and tmsRightBy().
|
inline |
Definition at line 809 of file arrays.h.
References beCopyOf(), and give_ptr2val().
Referenced by beCopyOf().
|
inline |
Definition at line 810 of file arrays.h.
References beCopyOf(), and give_ptr2val().
Referenced by beCopyOf().
|
inline |
Definition at line 802 of file arrays.h.
References _errorr, a, midaspace::Xmtrx::ccol, midaspace::Dvctr::give_ptr2val(), and midaspace::Xvctr::give_size().
Referenced by midaspace::Triangle::compute_rotMg2l().
|
inline |
Definition at line 806 of file arrays.h.
References a, midaspace::Xmtrx::ccol, midaspace::Elem3D::x, midaspace::Elem3D::y, and midaspace::Elem3D::z.
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().
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.
|
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().
|
inline |
Definition at line 793 of file arrays.h.
References a, and midaspace::Xmtrx::ccol.
Referenced by midaspace::Dvctr::be_mean_of(), be_mtrxMmtrx(), midaspace::Dvctr::be_tnsr(), be_transposition(), beCopyOf(), midaspace::PoinT::beRotatedPoint(), midaspace::Beam::read_output_OOFEM(), midaspace::Triangle::read_output_OOFEM(), midaspace::Brick::read_output_OOFEM(), and midaspace::Geometry::read_VTK().
|
inline |
Definition at line 794 of file arrays.h.
References a, and midaspace::Xmtrx::ccol.
|
inline |
Definition at line 790 of file arrays.h.
References a, and midaspace::Xmtrx::ccol.
|
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 |
print yourself
Definition at line 981 of file arrays.cpp.
References a, midaspace::Xmtrx::ccol, errol, midaspace::give_copy_r2z(), midaspace::pprint_tensor(), and midaspace::pprint_tensor_zero().
void midaspace::Dmtrx::resize_ignore_vals | ( | long | r, |
long | c | ||
) |
print yourself
Definition at line 711 of file arrays.cpp.
References a, midaspace::Xmtrx::asize, and midaspace::Xmtrx::ccol.
Referenced by be_mtrxMmtrx(), be_tnsr(), be_transposition(), midaspace::Beam::read_output_OOFEM(), midaspace::Triangle::read_output_OOFEM(), midaspace::Quadrangle::read_output_OOFEM(), midaspace::Brick::read_output_OOFEM(), and midaspace::scan_DATA_field().
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().
|
inline |
Definition at line 799 of file arrays.h.
References a, midaspace::Xmtrx::ccol, and midaspace::Xmtrx::crow.
Referenced by be_mtrxMmtrx().
|
protected |
Definition at line 774 of file arrays.h.
Referenced by be_mtrxMmtrx(), be_tnsr(), be_transposition(), beCopyOf(), copy_row(), Dmtrx(), GaussSolve(), give_determinant(), give_ptr2val(), operator()(), print_tensor(), resize_ignore_vals(), zero(), and ~Dmtrx().