![]() |
XC Open source finite element analysis program
|
Vector that can move between processes. More...
#include <MovableVector.h>
Public Member Functions | |
| MovableVector (const size_t &sz=0) | |
| Constructor. | |
| MovableVector (const Vector &) | |
| Constructor. | |
| void | setVector (const Vector &) |
| Asigna el vector. | |
| virtual int | sendSelf (CommParameters &) |
| Envia el vector through the channel being passed as parameter. | |
| virtual int | recvSelf (const CommParameters &) |
| Recibe el vector through the channel being passed as parameter. | |
Public Member Functions inherited from XC::Vector | |
| Vector (void) | |
| Standard constructor, sets size= 0;. | |
| Vector (const int &, const double &valor=0.0) | |
| Constructor used to allocate a vector of size size. | |
| Vector (const std::vector< double > &v) | |
| Vector (const Vector2d &v) | |
| Vector (const Vector3d &v) | |
| Vector (const double &, const double &, const double &) | |
| Vector (const Vector &) | |
| Constructor to init a vector from another. | |
| Vector (double *data, int size) | |
| Constructor. | |
| Vector (const boost::python::list &) | |
| Constructor (interfaz Python). | |
| virtual | ~Vector (void) |
| destructor, deletes the [] data | |
| int | setData (double *newData, int size) |
| const double * | getDataPtr (void) const |
| double * | getDataPtr (void) |
| bool | Nulo (void) const |
| int | Assemble (const Vector &V, const ID &l, double fact=1.0) |
| Method to assemble into object the XC::Vector V using the XC::ID l. If XC::ID(x) does not exist program writes error message if VECTOR_CHECK defined, otherwise ignores it and goes on. | |
| double | Norm2 (void) const |
| Returns the cuadrado del módulo del vector. | |
| double | Norm (void) const |
| Method to return the norm of vector. | |
| double | pNorm (int p) const |
| double | NormInf (void) const |
| Returns the máximo de los valores absolutos de las componentes del vector (norma_infinito). | |
| int | Size (void) const |
| int | getNumBytes (void) const |
| int | resize (int newSize) |
| Changes vector size. | |
| void | Zero (void) |
| bool | isnan (void) const |
| int | reset (const int &newSize) |
| int | Normalize (void) |
| Normalizes the vector with the euclidean norm. | |
| int | NormalizeInf (void) |
| Normaliza el vector con la norma_infinito. | |
| Vector | Normalized (void) const |
| Returns the normalized vector con la norma euclidea. | |
| Vector | NormalizedInf (void) const |
| Returns the normalized vector con la norma_infinito. | |
| int | addVector (double factThis, const Vector &other, double factOther) |
| int | addMatrixVector (double factThis, const Matrix &m, const Vector &v, double factOther) |
| int | addMatrixTransposeVector (double factThis, const Matrix &m, const Vector &v, double factOther) |
| virtual double & | at (const size_t &f) |
| Returns the element at the row being passed as parameter. More... | |
| virtual const double & | at (const size_t &f) const |
| Returns the element at the row being passed as parameter. More... | |
| virtual bool | CheckIndice0 (const size_t &i) const |
| Check the index being passed as parameter. More... | |
| const double & | operator() (int x) const |
| double & | operator() (int x) |
| const double & | operator[] (int x) const |
| double & | operator[] (int x) |
| Vector | operator() (const ID &rows) const |
| Method to return a vector whose components are the components of the current vector located in positions given by the XC::ID rows. | |
| Vector & | operator= (const Vector &V) |
| the assignment operator, This is assigned to be a copy of V. if sizes are not compatable this.theData [] is deleted. The data pointers will not point to the same area in mem after the assignment. | |
| template<class TNSR > | |
| Vector & | operator= (const TNSR &T) |
| Vector & | operator+= (double fact) |
| The += operator adds fact to each element of the vector, data[i]= data[i]+fact. | |
| Vector & | operator-= (double fact) |
| The -= operator subtracts fact from each element of the vector, data[i]= data[i]-fact. | |
| Vector & | operator*= (double fact) |
| The *= operator multiplies each element by the factor. | |
| Vector & | operator/= (double fact) |
| The /= operator divides each element of the vector by fact, theData[i]= theData[i]/fact. Program exits if divide-by-zero would occur with warning message. | |
| Vector | operator+ (double fact) const |
| The + operator returns a XC::Vector of the same size as current, whose components are return(i)= theData[i]+fact;. | |
| Vector | operator- (double fact) const |
| The + operator returns a XC::Vector of the same size as current, whose components are return(i)= theData[i]-fact;. | |
| Vector | operator* (double fact) const |
| The + operator returns a XC::Vector of the same size as current, whose components are return(i)= theData[i]*fact;. | |
| Vector | operator/ (double fact) const |
| The + operator returns a XC::Vector of the same size as current, whose components are return(i)= theData[i]/fact; Exits if divide-by-zero error. | |
| Vector & | operator+= (const Vector &V) |
| The += operator adds V's data to data, data[i]+=V(i). A check to see if vectors are of same size is performed if VECTOR_CHECK is defined. | |
| Vector & | operator-= (const Vector &V) |
| The -= operator subtracts V's data from data, data[i]+=V(i). A check to see if vectors are of same size is performed if VECTOR_CHECK is defined. | |
| Vector | operator+ (const Vector &V) const |
| Vector | operator- (const Vector &V) const |
| The - operator checks the two vectors are of the same size and then returns a XC::Vector whose components are the vector difference of current and V's data. | |
| double | operator^ (const Vector &V) const |
| Method to perform (Vector)transposed * vector. | |
| Vector | operator/ (const Matrix &M) const |
| Method to return inv(M)*this. | |
| double | dot (const Vector &) const |
| int | Assemble (const Vector &V, int init_row, double fact=1.0) |
| int | Extract (const Vector &V, int init_row, double fact=1.0) |
| Vector | getComponents (const ID &) const |
| Returns a vector with the specified subset of components. | |
| void | putComponents (const Vector &, const ID &) |
| Assigns the specified values to the specified set of vecto's components. | |
| void | addComponents (const Vector &, const ID &) |
| Sums the specified values to the specified set of vecto's components. | |
| void | write (std::ofstream &) |
| Escribe el vector en un archivo binario. | |
| void | read (std::ifstream &) |
| Lee el vector de un archivo binario. | |
| std::string | toString (void) const |
Public Member Functions inherited from XC::MovableObject | |
| MovableObject (int classTag, int dbTag) | |
| Constructor. | |
| MovableObject (int classTag) | |
| Constructor. | |
| MovableObject (const MovableObject &otro) | |
| Copy constructor. | |
| MovableObject & | operator= (const MovableObject &otro) |
| Operacdor asignación. | |
| int | getClassTag (void) const |
| Returns the tag de la clase. | |
| int | getDbTag (void) const |
| Returns the tag para la database. | |
| int | getDbTag (CommParameters &) |
| Returns the tag para la database. | |
| void | setDbTag (int dbTag) |
| Asigna el tag para la database. | |
| void | setDbTag (CommParameters &) |
| Asigna, sólo si es preciso, el tag para la database. | |
| virtual int | setParameter (const std::vector< std::string > &argv, Parameter ¶m) |
| virtual int | updateParameter (int parameterID, Information &info) |
| virtual int | activateParameter (int parameterID) |
| virtual int | setVariable (const std::string &variable, Information &) |
| Returns the identificador de la variable cuyo nombre being passed as parameter. | |
| virtual int | getVariable (const std::string &variable, Information &) |
Public Member Functions inherited from XC::DistributedBase | |
| DistributedBase (void) | |
| Constructor. | |
| const int & | getDbTagDataPos (const int &i) const |
| Returns the data at the i-th position. | |
| void | setDbTagDataPos (const int &i, const int &v) |
| Sets the data at the i-th position. | |
| void | inicComm (const int &dataSize) const |
| Initializes communication. | |
Protected Member Functions | |
| DbTagData & | getDbTagData (void) const |
| Returns a vector para almacenar los dbTags de los miembros de la clase. | |
Vector that can move between processes.
1.8.11