|
|
| Vector () |
| | Default constructor.
|
| |
| | Vector (unsigned int size) |
| |
| virtual void | alloc (unsigned int ndofs)=0 |
| |
|
virtual void | free ()=0 |
| | free the memory
|
| |
|
virtual void | finish () |
| | finish the assembly of the vector
|
| |
| virtual Scalar | get (unsigned int idx) const =0 |
| |
|
virtual Vector< Scalar > * | duplicate () const =0 |
| | Duplicate vector (including allocation).
|
| |
| virtual void | extract (Scalar *v) const =0 |
| |
|
virtual void | zero ()=0 |
| | Zero the vector.
|
| |
|
virtual Vector< Scalar > * | change_sign ()=0 |
| | Multiply by minus one.
|
| |
| virtual void | set (unsigned int idx, Scalar y)=0 |
| |
| virtual void | add (unsigned int idx, Scalar y)=0 |
| |
|
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 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 void | add (unsigned int n, unsigned int *idx, Scalar *y)=0 |
| |
|
unsigned int | get_size () const |
| | Get vector length.
|
| |
|
| 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;.
|
| |
| virtual void | export_to_file (const char *filename, const char *var_name, Algebra::MatrixExportFormat fmt, char *number_format="%lf")=0 |
| |
|
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") |
| |
| virtual void | import_from_file (const char *filename, const char *var_name, Algebra::MatrixExportFormat fmt) |
| |
|
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) |
| |
template<typename Scalar>
class Hermes::Algebra::Vector< Scalar >
General (abstract) vector representation in Hermes.
Definition at line 35 of file algebra_mixins.h.