muMECH
1.0
|
#include <arrays.h>
Public Member Functions | |
Dvctr (void) | |
CONSTRUCTOR. More... | |
Dvctr (long s) | |
Dvctr (const Dvctr *src) | |
Dvctr (long s, const double *src) | |
Dvctr (const VectoR *src) | |
virtual | ~Dvctr () |
DESTRUCTOR. More... | |
arrayClassType | give_classid () const |
arrayTypedef | give_arrayTypedef (void) const |
double | operator[] (long i) const |
double & | operator[] (long i) |
Dvctr * | free (void) |
void | realloc (long newsize) |
reallocate up receiver More... | |
Dvctr * | resize_preserve_vals (long newsize) |
Dvctr * | resize_ignore_vals (long newsize) |
Dvctr * | resize_to_asize (void) |
Dvctr * | assign_array (double *array, long s) |
Dvctr * | assign_array (const double *array, long s) |
void | cpat (long i, const Xvctr *p, long j) |
void | shift (long val) |
bool | scan (const char *&src) |
double * | give_ptr2val (long i=0) |
return pointer to More... | |
const double * | give_ptr2val (long i=0) const |
double | give_lenght (void) const |
double | give_sum (void) const |
long | give_number_of_nonzeros (void) const |
void | zero (void) |
void | beCopyOf (const PoinT &src) |
void | beCopyOf (const double *src) |
void | beCopyOf (const double *src, long s) |
void | beCopyOf (const Dvctr &src) |
void | beCopyOf (const Dvctr *src) |
void | copy_to (double *dest) const |
void | append (const Dvctr *src) |
void | be_tnsr (const Dmtrx &src) |
void | be_vectproduct (const Dvctr &v1, const Dvctr &v2) |
void | be_mean_of (const Dmtrx *src) |
double | give_dotproduct (const Dvctr &v) const |
void | add (const Dvctr &src) |
void | addtms (const Dvctr &src, double tms) |
void | sbt (const Dvctr &src) |
void | tmsby (double val) |
void | dvdby (double val) |
void | tnsrRotWith (const Dmtrx &rot) |
this = rot * this * rot^transp More... | |
void | tnsrRotWith1 (const Dmtrx &rot) |
void | tnsrRotWith2 (const Dmtrx &rot) |
void | tnsrRotAxisZangle (double a) |
rotate coord system around axis z by angle More... | |
void | normalize (void) |
double | compute_squared_norm (void) const |
double | give_zero (double abszero, double relzero) const |
int | length_printed (int precision) const |
void round2zero (double zero, double absZero); More... | |
int | length_printed_vector (int precision) const |
int | length_printed_tensor (int precision) const |
void | print (char *stream, int precision, double absZero=0.0) const |
void | print_vector (char *stream, int precision, double absZero=0.0, bool zerorest=false) const |
void | print_symtensor (char *stream, int precision, double absZero=0.0, bool zerorest=false) const |
void | print_symtensor (FILE *stream, int precision, double absZero=0.0, bool zerorest=false) const |
![]() | |
Xvctr (long s) | |
CONSTRUCTOR. More... | |
virtual | ~Xvctr () |
DESTRUCTOR. More... | |
void | deshift (void) |
virtual long | give_size (void) const |
double | give_zero (double abszero, double relzero) const |
![]() | |
Array1d () | |
CONSTRUCTOR. More... | |
virtual | ~Array1d () |
DESTRUCTOR. More... | |
![]() | |
Array () | |
CONSTRUCTOR. More... | |
virtual | ~Array () |
DESTRUCTOR. More... | |
Public Attributes | |
double * | a |
Additional Inherited Members | |
![]() | |
bool | exta |
bool | cnst |
long | shft |
long | size |
long | asize |
|
inline |
|
inline |
|
inline |
Definition at line 593 of file arrays.h.
References SRCCHCK, gelibspace::Elem3D::x, gelibspace::Elem3D::y, and gelibspace::Elem3D::z.
|
inlinevirtual |
void gelibspace::Dvctr::add | ( | const Dvctr & | src | ) |
Definition at line 397 of file arrays.cpp.
References _errorr, gelibspace::MatriX::a, AVOID_CNST, give_ptr2val(), and gelibspace::Xvctr::give_size().
void gelibspace::Dvctr::addtms | ( | const Dvctr & | src, |
double | tms | ||
) |
Definition at line 398 of file arrays.cpp.
References _errorr, gelibspace::MatriX::a, AVOID_CNST, give_ptr2val(), and gelibspace::Xvctr::give_size().
|
inline |
Definition at line 668 of file arrays.h.
References a, gelibspace::Elem3D::add(), AVOID_CNST, gelibspace::Xvctr::size, and gelibspace::Elem3D::tms().
Dvctr * gelibspace::Dvctr::assign_array | ( | double * | array, |
long | s | ||
) |
Definition at line 279 of file arrays.cpp.
References gelibspace::MatriX::a, array, and errol.
Dvctr * gelibspace::Dvctr::assign_array | ( | const double * | array, |
long | s | ||
) |
Definition at line 289 of file arrays.cpp.
References gelibspace::MatriX::a, and errol.
void gelibspace::Dvctr::be_mean_of | ( | const Dmtrx * | src | ) |
Definition at line 367 of file arrays.cpp.
References gelibspace::MatriX::a, gelibspace::Xmtrx::give_ccols(), gelibspace::Xmtrx::give_crows(), and gelibspace::Dmtrx::give_ptr2val().
void gelibspace::Dvctr::be_tnsr | ( | const Dmtrx & | src | ) |
Definition at line 332 of file arrays.cpp.
References _errorr, gelibspace::MatriX::a, AVOID_CNST, gelibspace::Xmtrx::give_ccols(), gelibspace::Xmtrx::give_crows(), and gelibspace::Dmtrx::give_ptr2val().
Definition at line 350 of file arrays.cpp.
References _errorr, gelibspace::MatriX::a, AVOID_CNST, give_ptr2val(), and gelibspace::Xvctr::give_size().
|
inline |
Definition at line 659 of file arrays.h.
References gelibspace::Elem3D::x, gelibspace::Elem3D::y, and gelibspace::Elem3D::z.
|
inline |
Definition at line 660 of file arrays.h.
References AVOID_CNST.
|
inline |
|
inline |
|
inline |
Definition at line 663 of file arrays.h.
References a, and gelibspace::Xvctr::size.
double gelibspace::Dvctr::compute_squared_norm | ( | void | ) | const |
Definition at line 491 of file arrays.cpp.
References gelibspace::MatriX::a.
|
inline |
|
inlinevirtual |
void gelibspace::Dvctr::dvdby | ( | double | val | ) |
Definition at line 401 of file arrays.cpp.
References gelibspace::MatriX::a, and AVOID_CNST.
Dvctr * gelibspace::Dvctr::free | ( | void | ) |
Definition at line 300 of file arrays.cpp.
References gelibspace::MatriX::a.
|
inlinevirtual |
Implements gelibspace::Array.
Definition at line 598 of file arrays.h.
References gelibspace::ATdouble.
|
inlinevirtual |
Implements gelibspace::Xvctr.
Definition at line 597 of file arrays.h.
References gelibspace::DvctrClass.
double gelibspace::Dvctr::give_dotproduct | ( | const Dvctr & | v | ) | const |
Definition at line 386 of file arrays.cpp.
References gelibspace::MatriX::a, and a.
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 309 of file arrays.cpp.
References _warningg, and gelibspace::MatriX::a.
long gelibspace::Dvctr::give_number_of_nonzeros | ( | void | ) | const |
|
inline |
return pointer to
Definition at line 645 of file arrays.h.
References AVOID_CNST.
Referenced by add(), addtms(), gelibspace::Dmtrx::be_tnsr(), be_vectproduct(), gelibspace::Dmtrx::copy_row(), gelibspace::MatriX::rotate(), sbt(), and gelibspace::SP_scan_array_L().
|
inline |
Definition at line 646 of file arrays.h.
References gelibspace::Elem3D::give_sum().
double gelibspace::Dvctr::give_sum | ( | void | ) | const |
Definition at line 321 of file arrays.cpp.
References gelibspace::MatriX::a.
double gelibspace::Dvctr::give_zero | ( | double | abszero, |
double | relzero | ||
) | const |
|
virtual |
void round2zero (double zero, double absZero);
Implements gelibspace::Array1d.
Definition at line 541 of file arrays.cpp.
References NUM_DIGITS_IN_PRINTED_EXPONENT.
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 543 of file arrays.cpp.
References _errorr, gelibspace::MatriX::a, NUM_DIGITS_IN_PRINTED_EXPONENT, and PYP.
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 542 of file arrays.cpp.
References NUM_DIGITS_IN_PRINTED_EXPONENT.
void gelibspace::Dvctr::normalize | ( | void | ) |
Definition at line 483 of file arrays.cpp.
References AVOID_CNST.
|
inline |
|
inline |
|
virtual |
Implements gelibspace::Array1d.
Definition at line 561 of file arrays.cpp.
References gelibspace::MatriX::a, errol, gelibspace::give_copy_r2z(), and NUM_DIGITS_IN_PRINTED_EXPONENT.
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 629 of file arrays.cpp.
References gelibspace::MatriX::a, errol, gelibspace::give_copy_r2z(), gelibspace::pprint_symtensor(), and gelibspace::pprint_tensor_zero().
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 642 of file arrays.cpp.
References gelibspace::MatriX::a, errol, gelibspace::give_copy_r2z(), gelibspace::pprint_symtensor(), and gelibspace::pprint_tensor_zero().
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 576 of file arrays.cpp.
References gelibspace::MatriX::a, errol, and gelibspace::give_copy_r2z().
void gelibspace::Dvctr::realloc | ( | long | newsize | ) |
|
inline |
Definition at line 622 of file arrays.h.
References _errorr, and AVOID_CNST.
Referenced by gelibspace::SP_scan_array_L().
|
inline |
Definition at line 620 of file arrays.h.
References AVOID_CNST, and AVOID_EXTA.
|
inline |
Definition at line 628 of file arrays.h.
References array, AVOID_CNST, and AVOID_EXTA.
void gelibspace::Dvctr::sbt | ( | const Dvctr & | src | ) |
Definition at line 399 of file arrays.cpp.
References _errorr, gelibspace::MatriX::a, AVOID_CNST, give_ptr2val(), and gelibspace::Xvctr::give_size().
|
inlinevirtual |
Implements gelibspace::Xvctr.
Definition at line 641 of file arrays.h.
References gelibspace::SP_scan_array().
|
inlinevirtual |
void gelibspace::Dvctr::tmsby | ( | double | val | ) |
Definition at line 408 of file arrays.cpp.
References gelibspace::MatriX::a, and AVOID_CNST.
void gelibspace::Dvctr::tnsrRotAxisZangle | ( | double | a | ) |
rotate coord system around axis z by angle
Definition at line 459 of file arrays.cpp.
References _errorr, gelibspace::MatriX::a, and AVOID_CNST.
void gelibspace::Dvctr::tnsrRotWith | ( | const Dmtrx & | rot | ) |
this = rot * this * rot^transp
Definition at line 430 of file arrays.cpp.
References _errorr, gelibspace::MatriX::a, and AVOID_CNST.
void gelibspace::Dvctr::tnsrRotWith1 | ( | const Dmtrx & | rot | ) |
void gelibspace::Dvctr::tnsrRotWith2 | ( | const Dmtrx & | rot | ) |
|
inline |
Definition at line 657 of file arrays.h.
References AVOID_CNST.
double* gelibspace::Dvctr::a |
Definition at line 586 of file arrays.h.
Referenced by append(), beCopyOf(), cpat(), Dvctr(), and give_dotproduct().