|
HermesCommon
3.0
|
Class representing the vector for UMFPACK. More...
#include <paralution_solver.h>
Inheritance diagram for Hermes::Algebra::ParalutionVector< Scalar >:Public Member Functions | |
| ParalutionVector () | |
| Default constructor. | |
| ParalutionVector (unsigned int size) | |
| virtual void | alloc (unsigned int ndofs) |
| virtual void | free () |
| free the memory | |
| virtual void | zero () |
| Zero the vector. | |
| paralution::LocalVector< Scalar > * | get_paralutionVector () |
Public Member Functions inherited from Hermes::Algebra::SimpleVector< Scalar > | |
| SimpleVector (unsigned int size) | |
| virtual Scalar | get (unsigned int idx) const |
| virtual void | extract (Scalar *v) const |
| virtual Vector< Scalar > * | change_sign () |
| Multiply by minus one. | |
| Vector< Scalar > * | duplicate () const |
| Duplicates a matrix (including allocation). | |
| virtual void | set (unsigned int idx, Scalar y) |
| virtual void | add (unsigned int idx, Scalar y) |
| virtual void | add (unsigned int n, unsigned int *idx, Scalar *y) |
| virtual Vector< Scalar > * | add_vector (Vector< Scalar > *vec) |
| Add a vector. | |
| virtual Vector< Scalar > * | add_vector (Scalar *vec) |
| Add a vector. | |
| virtual Vector< Scalar > * | subtract_vector (Vector< Scalar > *vec) |
| Subtract a vector. | |
| virtual Vector< Scalar > * | subtract_vector (Scalar *vec) |
| Subtract a vector. | |
| virtual Vector< Scalar > * | set_vector (Vector< Scalar > *vec) |
| Set values from a user-provided vector. | |
| virtual Vector< Scalar > * | set_vector (Scalar *vec) |
| Set values from a user-provided array. | |
| virtual void | export_to_file (const char *filename, const char *var_name, MatrixExportFormat fmt, char *number_format="%lf") |
| virtual void | import_from_file (const char *filename, const char *var_name, MatrixExportFormat fmt) |
| template<> | |
| void | add (unsigned int idx, double y) |
| template<> | |
| void | add (unsigned int idx, std::complex< double > y) |
Public Member Functions inherited from Hermes::Algebra::Vector< Scalar > | |
| Vector () | |
| Default constructor. | |
| Vector (unsigned int size) | |
| virtual void | finish () |
| finish the assembly of the vector | |
| unsigned int | get_size () const |
| Get vector length. | |
Public Member Functions inherited from Hermes::Mixins::Loggable | |
| Loggable (bool verbose_output=false, callbackFn verbose_callback=NULL, bool add_newline=true) | |
| void | set_file_output_only (bool onOff) |
| void | set_timestamps (bool onOff) |
| Sets the addition of a time stamp on each line in the log file. By default it is on. | |
| void | set_erase_on_beginning (bool onOff) |
| Sets the logFile being always erased before logging. | |
| void | set_logFile_name (const char *filename) |
| void | set_logFile_name (std::string filename) |
| void | info (const char *msg,...) const |
| void | info_if (bool cond, const char *msg,...) const |
| void | warn (const char *msg,...) const |
| void | warn_if (bool cond, const char *msg,...) const |
| void | error (const char *msg,...) const |
| void | error_if (bool cond, const char *msg,...) const |
| virtual void | set_verbose_output (bool to_set) |
| bool | get_verbose_output () const |
| Returns the current value of verbose_output;. | |
| virtual void | set_verbose_callback (callbackFn callback) |
| callbackFn | get_verbose_callback () const |
| Returns the current value of verbose_callback;. | |
Public Member Functions inherited from Hermes::Algebra::Mixins::MatrixRhsImportExport< Scalar > | |
| void | export_to_file (std::string filename, const char *var_name, Algebra::MatrixExportFormat fmt, char *number_format="%lf") |
| void | export_to_file (std::string filename, std::string var_name, Algebra::MatrixExportFormat fmt, char *number_format="%lf") |
| void | import_from_file (std::string filename, const char *var_name, Algebra::MatrixExportFormat fmt) |
| void | import_from_file (std::string filename, std::string var_name, Algebra::MatrixExportFormat fmt) |
Additional Inherited Members | |
Static Public Member Functions inherited from Hermes::Mixins::Loggable | |
| static void | set_static_logFile_name (const char *filename) |
| static void | set_static_logFile_name (std::string filename) |
Public Attributes inherited from Hermes::Algebra::SimpleVector< Scalar > | |
| Scalar * | v |
| Raw data. | |
Public Attributes inherited from Hermes::Mixins::Loggable | |
| char * | logFileName |
| Logfile name. | |
Static Public Attributes inherited from Hermes::Mixins::Loggable | |
| static char * | staticLogFileName = nullptr |
Protected Member Functions inherited from Hermes::Mixins::Loggable | |
| void | hermes_fwrite (const void *ptr, size_t size, size_t nitems, FILE *stream) const |
| void | hermes_fread (void *ptr, size_t size, size_t nitems, FILE *stream) const |
Protected Attributes inherited from Hermes::Algebra::Vector< Scalar > | |
| unsigned int | size |
| size of vector | |
Class representing the vector for UMFPACK.
Definition at line 78 of file paralution_solver.h.
| Hermes::Algebra::ParalutionVector< Scalar >::ParalutionVector | ( | unsigned int | size | ) |
Constructor of vector with specific size.
| [in] | size | size of vector |
Definition at line 81 of file paralution_solver.cpp.
|
virtual |
allocate memory for storing ndofs elements
| [in] | ndofs | - number of elements of the vector |
Reimplemented from Hermes::Algebra::SimpleVector< Scalar >.
Definition at line 88 of file paralution_solver.cpp.
Referenced by Hermes::Algebra::ParalutionVector< Scalar >::ParalutionVector().