NUMCXX
0.13.20181108
Numerical library for small projects and teaching purposes
|
Go to the source code of this file.
Functions | |
void | initialize (std::vector< double > &x) |
We pass (as in example 03) a reference to the vector to the functions using it. More... | |
double | sum_elements (std::vector< double > &x) |
int | main () |
void initialize | ( | std::vector< double > & | x | ) |
We pass (as in example 03) a reference to the vector to the functions using it.
This is possible as long as the function itself does not store the vector in another class.
Definition at line 17 of file 05-cxx-style-sharedptr2.cxx.
double sum_elements | ( | std::vector< double > & | x | ) |
Definition at line 23 of file 05-cxx-style-sharedptr2.cxx.
int main | ( | void | ) |
Definition at line 30 of file 05-cxx-style-sharedptr2.cxx.