|
HyPar
1.0
Finite-Difference Hyperbolic-Parabolic PDE Solver on Cartesian Grids
|
Functions | |
| long | sum (const std::vector< int > &a_iv) |
| long | product (const std::vector< int > &a_iv) |
| void | copyFrom (std::vector< int > &a_iv, const int *const a_iv_carr, int a_n) |
| void | add (std::vector< int > &a_iv, const int a_a) |
| void | copyFrom (std::vector< double > &a_iv, const double *const a_iv_carr, int a_n) |
| void | createNormalVector (std::vector< double > &a_normal_vec, const int *a_vec, const int a_size) |
| void | createNormalVector (std::vector< double > &a_normal_vec, const std::vector< int > &a_vec) |
| double | compute2Norm (const std::vector< double > &a_a, const std::vector< double > &a_b) |
Vector operations defined for the std::vector class
|
inline |
|
inline |
|
inline |
Copy from a C-array
| a_iv | C++ vector of ints |
| a_iv_carr | C array of ints |
| a_n | size |
Definition at line 36 of file std_vec_ops.h.
|
inline |
Add constant to all elements of a vector
| a_iv | C++ vector of ints |
| a_a | constant to add |
Definition at line 48 of file std_vec_ops.h.
|
inline |
Copy from a C-array
| a_iv | C++ vector of doubles |
| a_iv_carr | C array of doubles |
| a_n | size |
Definition at line 57 of file std_vec_ops.h.
|
inline |
Create a normal vector of doubles (of unit magnitude) from a C-array of integers
| a_normal_vec | Normal vector |
| a_vec | C-array of integers |
| a_size | size of C-array |
Definition at line 70 of file std_vec_ops.h.
|
inline |
Create a normal vector of doubles (of unit magnitude) from a vector of integers
| a_normal_vec | Normal vector |
| a_vec | Integer vector |
Definition at line 91 of file std_vec_ops.h.
|
inline |
Compute norm between two vectors
| a_a | input vector |
| a_b | input vector |
Definition at line 102 of file std_vec_ops.h.