#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 (long 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 |
|
inline |
Definition at line 416 of file arrays.h.
References a, and midaspace::Xvctr::asize.
|
inline |
Definition at line 417 of file arrays.h.
References a, midaspace::Xvctr::asize, and midaspace::Xvctr::size.
|
inline |
Definition at line 418 of file arrays.h.
References a, midaspace::Xvctr::asize, and midaspace::Xvctr::size.
|
inlinevirtual |
DESTRUCTOR.
Definition at line 420 of file arrays.h.
References a, midaspace::Xvctr::deshift(), and midaspace::Xvctr::exta.
|
inline |
add value to size++ position
Definition at line 460 of file arrays.h.
References a, resize_preserve_vals(), and midaspace::Xvctr::size.
Referenced by midaspace::Point::add_property(), and add_unique().
|
inline |
add value to size++ position if unique
Definition at line 462 of file arrays.h.
References add(), and is_member().
Lvctr * midaspace::Lvctr::assign_array | ( | long * | array, |
long | s | ||
) |
Definition at line 111 of file arrays.cpp.
References a, midaspace::Xvctr::asize, midaspace::Xvctr::cnst, errol, midaspace::Xvctr::exta, and midaspace::Xvctr::size.
Lvctr * midaspace::Lvctr::assign_array | ( | const long * | array, |
long | s | ||
) |
Definition at line 121 of file arrays.cpp.
References a, midaspace::Xvctr::asize, midaspace::Xvctr::cnst, errol, midaspace::Xvctr::exta, and midaspace::Xvctr::size.
|
inlinevirtual |
|
inline |
Set all elements of the array to the given value.
Definition at line 487 of file arrays.h.
References a, and midaspace::Xvctr::size.
Referenced by midaspace::PointDOFsBCPM::assemble_full_constrained(), and midaspace::PointAttribs::assemble_full_constrained().
Lvctr * midaspace::Lvctr::free | ( | void | ) |
Definition at line 131 of file arrays.cpp.
References a, midaspace::Xvctr::asize, midaspace::Xvctr::cnst, midaspace::Xvctr::exta, midaspace::Xvctr::shft, and midaspace::Xvctr::size.
|
inlinevirtual |
|
inlinevirtual |
Implements midaspace::Xvctr.
Definition at line 423 of file arrays.h.
References midaspace::LvctrClass.
|
virtual |
Implements midaspace::Xvctr.
Definition at line 140 of file arrays.cpp.
References a, and midaspace::Xvctr::size.
long midaspace::Lvctr::give_number_of_nonzeros | ( | void | ) | const |
Definition at line 149 of file arrays.cpp.
References a, and midaspace::Xvctr::size.
Referenced by midaspace::Problem::print_input_SIFEL().
long midaspace::Lvctr::give_number_of_zeros | ( | void | ) | const |
Definition at line 150 of file arrays.cpp.
References a, and midaspace::Xvctr::size.
Referenced by midaspace::GeometryComponent::checkConsistency().
|
inline |
|
inline |
long midaspace::Lvctr::give_sum | ( | void | ) | const |
Definition at line 148 of file arrays.cpp.
References a, and midaspace::Xvctr::size.
|
inline |
Definition at line 464 of file arrays.h.
References a, midaspace::is_member_of_array(), and midaspace::Xvctr::size.
Referenced by add_unique().
|
virtual |
Implements midaspace::Array1d.
Definition at line 156 of file arrays.cpp.
References midaspace::Xvctr::size.
|
virtual |
Implements midaspace::Xvctr.
Definition at line 158 of file arrays.cpp.
|
virtual |
Implements midaspace::Xvctr.
Definition at line 157 of file arrays.cpp.
Definition at line 445 of file arrays.h.
References _errorr, a, AVOID_CNST, AVOID_EXTA, realloc(), and midaspace::Xvctr::size.
|
inline |
Definition at line 428 of file arrays.h.
References _errorr, a, and midaspace::Xvctr::size.
|
inline |
Definition at line 436 of file arrays.h.
References _errorr, a, and midaspace::Xvctr::size.
|
virtual |
Implements midaspace::Array1d.
Definition at line 176 of file arrays.cpp.
References a, errol, and midaspace::Xvctr::size.
|
virtual |
Implements midaspace::Xvctr.
Definition at line 224 of file arrays.cpp.
References a, errol, midaspace::pprint_symtensor(), and midaspace::pprint_symtensor_zeroL().
|
virtual |
Implements midaspace::Xvctr.
Definition at line 232 of file arrays.cpp.
References a, errol, midaspace::pprint_symtensor(), and midaspace::pprint_symtensor_zeroL().
|
virtual |
void midaspace::Lvctr::realloc | ( | long | newsize | ) |
reallocate up receiver
Definition at line 97 of file arrays.cpp.
References a, midaspace::Xvctr::asize, and midaspace::Xvctr::size.
Referenced by operator=(), resize_ignore_vals(), and resize_preserve_vals().
|
inline |
resize, ignore values
Definition at line 472 of file arrays.h.
References AVOID_CNST, AVOID_EXTA, realloc(), and midaspace::Xvctr::size.
Referenced by midaspace::PointDOFsBCPM::assemble_full_constrained(), midaspace::PointAttribs::assemble_full_constrained(), midaspace::GeometryComponent::checkset_mprop(), midaspace::HNAttribs::initialize_from(), midaspace::Problem::Problem(), midaspace::GeometryComponent::reset_mprop(), midaspace::Point::reset_property(), midaspace::scan_DATA_field(), midaspace::GeometryComponent::set_mprop(), and midaspace::Point::set_property().
|
inline |
resize, keep values
Definition at line 470 of file arrays.h.
References AVOID_CNST, AVOID_EXTA, realloc(), and midaspace::Xvctr::size.
Referenced by add().
|
inline |
resize to asize
Definition at line 474 of file arrays.h.
References midaspace::Xvctr::asize, AVOID_CNST, AVOID_EXTA, and midaspace::Xvctr::size.
|
inlinevirtual |
Implements midaspace::Xvctr.
Definition at line 485 of file arrays.h.
References a, midaspace::Xvctr::size, and midaspace::SP_scan_array().
Referenced by midaspace::HNAttribs::initialize_from().
|
inlinevirtual |
Implements midaspace::Xvctr.
Definition at line 484 of file arrays.h.
References a, AVOID_CNST, and midaspace::Xvctr::shft.
|
inline |
Definition at line 504 of file arrays.h.
References a, midaspace::Xvctr::asize, and AVOID_CNST.
Referenced by midaspace::Problem::Problem().
|
private |
Array of values.
Definition at line 411 of file arrays.h.
Referenced by add(), assign_array(), cpat(), fillYourselfBy(), free(), give_lenght(), give_number_of_nonzeros(), give_number_of_zeros(), give_ptr2val(), give_sum(), is_member(), Lvctr(), operator=(), operator[](), print(), print_symtensor(), print_vector(), realloc(), scan(), shift(), zero(), and ~Lvctr().