muMECH
1.0
|
#include <arrays.h>
Public Member Functions | |
Lvctr (void) | |
CONSTRUCTOR. More... | |
Lvctr (long s) | |
Lvctr (const Lvctr *p) | |
Lvctr (long s, const long *p) | |
virtual | ~Lvctr () |
DESTRUCTOR. More... | |
arrayClassType | give_classid () const |
arrayTypedef | give_arrayTypedef (void) const |
long | operator[] (long i) const |
long & | operator[] (long i) |
Lvctr & | operator= (const Lvctr &src) |
void | add (long val) |
add value to size++ position More... | |
void | add_unique (long val) |
add value to size++ position if unique More... | |
bool | is_member (long val) const |
Lvctr * | free (void) |
void | realloc (long newsize) |
reallocate up receiver More... | |
Lvctr * | resize_preserve_vals (long newsize) |
resize, keep values More... | |
Lvctr * | resize_ignore_vals (long newsize) |
resize, ignore values More... | |
Lvctr * | resize_to_asize (void) |
resize to asize More... | |
Lvctr * | assign_array (long *array, long s) |
Lvctr * | assign_array (const long *array, long s) |
void | cpat (long i, const Xvctr *p, long j) |
void | shift (long val) |
bool | scan (const char *&src) |
void | fillYourselfBy (int val) |
Set all elements of the array to the given value. More... | |
long * | give_ptr2val (long i=0) |
return pointer to More... | |
const long * | give_ptr2val (long i=0) const |
double | give_lenght (void) const |
long | give_sum (void) const |
long | give_number_of_nonzeros (void) const |
long | give_number_of_zeros (void) const |
void | zero (void) |
int | length_printed (int precision) const |
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... | |
Private Attributes | |
long * | a |
Array of values. More... | |
Additional Inherited Members | |
![]() | |
bool | exta |
bool | cnst |
long | shft |
long | size |
long | asize |
|
inline |
|
inlinevirtual |
|
inline |
|
inline |
add value to size++ position if unique
Definition at line 489 of file arrays.h.
References gelibspace::Elem3D::add().
Lvctr * gelibspace::Lvctr::assign_array | ( | long * | array, |
long | s | ||
) |
Definition at line 128 of file arrays.cpp.
References gelibspace::MatriX::a, array, and errol.
Lvctr * gelibspace::Lvctr::assign_array | ( | const long * | array, |
long | s | ||
) |
Definition at line 138 of file arrays.cpp.
References gelibspace::MatriX::a, and errol.
|
inlinevirtual |
|
inline |
Lvctr * gelibspace::Lvctr::free | ( | void | ) |
Definition at line 148 of file arrays.cpp.
References gelibspace::MatriX::a.
|
inlinevirtual |
Implements gelibspace::Array.
Definition at line 451 of file arrays.h.
References gelibspace::ATlong.
|
inlinevirtual |
Implements gelibspace::Xvctr.
Definition at line 450 of file arrays.h.
References gelibspace::LvctrClass.
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 157 of file arrays.cpp.
References gelibspace::MatriX::a.
long gelibspace::Lvctr::give_number_of_nonzeros | ( | void | ) | const |
Definition at line 166 of file arrays.cpp.
References gelibspace::MatriX::a.
long gelibspace::Lvctr::give_number_of_zeros | ( | void | ) | const |
Definition at line 167 of file arrays.cpp.
References gelibspace::MatriX::a.
|
inline |
|
inline |
Definition at line 519 of file arrays.h.
References gelibspace::Elem3D::give_sum().
long gelibspace::Lvctr::give_sum | ( | void | ) | const |
Definition at line 165 of file arrays.cpp.
References gelibspace::MatriX::a.
|
inline |
Definition at line 491 of file arrays.h.
References gelibspace::is_member_of_array().
|
virtual |
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 175 of file arrays.cpp.
References _errorr, and gelibspace::MatriX::a.
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 174 of file arrays.cpp.
Definition at line 472 of file arrays.h.
References _errorr, a, AVOID_CNST, AVOID_EXTA, and gelibspace::Xvctr::size.
|
inline |
|
inline |
|
virtual |
Implements gelibspace::Array1d.
Definition at line 193 of file arrays.cpp.
References gelibspace::MatriX::a, and errol.
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 241 of file arrays.cpp.
References gelibspace::MatriX::a, errol, gelibspace::pprint_symtensor(), and gelibspace::pprint_symtensor_zeroL().
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 249 of file arrays.cpp.
References gelibspace::MatriX::a, errol, gelibspace::pprint_symtensor(), and gelibspace::pprint_symtensor_zeroL().
|
virtual |
Implements gelibspace::Xvctr.
Definition at line 203 of file arrays.cpp.
References gelibspace::MatriX::a, and errol.
void gelibspace::Lvctr::realloc | ( | long | newsize | ) |
|
inline |
resize, ignore values
Definition at line 499 of file arrays.h.
References AVOID_CNST, and AVOID_EXTA.
|
inline |
|
inline |
resize to asize
Definition at line 501 of file arrays.h.
References array, AVOID_CNST, and AVOID_EXTA.
|
inlinevirtual |
Implements gelibspace::Xvctr.
Definition at line 512 of file arrays.h.
References gelibspace::SP_scan_array().
|
inlinevirtual |
|
inline |
Definition at line 531 of file arrays.h.
References AVOID_CNST.
|
private |