NUMCXX
0.13.20181108
Numerical library for small projects and teaching purposes
|
Go to the source code of this file.
Namespaces | |
numcxx | |
Numcxx template library. | |
Functions | |
template<typename T > | |
std::shared_ptr< TArray1< T > > | numcxx::linspace (T x0, T x1, int n) |
Create array of $n$ equally spaced entries. More... | |
template<typename A > | |
TArray1< typename A::value_type > | numcxx::arrayexpr (const A &a) |
Evaluate expression as array. More... | |
template<typename A > | |
A::value_type | numcxx::normi (const A &a) |
Maximum norm of array or expression. More... | |
template<typename A > | |
A::value_type | numcxx::norm1 (const A &a) |
Sum norm of array or expression. More... | |
template<typename A > | |
A::value_type | numcxx::norm2 (const A &a) |
Euklidean norm of array or expression. More... | |
template<typename A > | |
A::value_type | numcxx::min (const A &a) |
Minimum of of array or expression. More... | |
template<typename A > | |
A::value_type | numcxx::max (const A &a) |
Maximum of array or expression. More... | |
template<typename A > | |
A::value_type | numcxx::sum (const A &a) |
Sum of array or expression. More... | |
template<typename A , typename B > | |
A::value_type | numcxx::dot (const A &a, const B &b) |
Dot product of array or expression. More... | |
double | numcxx::cpu_clock () |
cpu time in seconds More... | |
double | numcxx::wall_clock () |
wall clock time in seconds More... | |
template<typename T > | |
void | numcxx::savetxt (const std::string fname, const TArray< T > &a) |
template<typename T > | |
void | numcxx::savetxt (std::ostream &s, const TArray< T > &a) |