|
Molecular Dynamics
v0.4
Project for the Practical hosted by the Scientific Computing Chair
|
Namespaces | |
| is_container_impl | |
Classes | |
| struct | is_container |
Functions | |
| template<class Container > | |
| std::string | to_string (const Container &container, const std::string &delimiter=", ", const std::array< std::string, 2 > &surround={"[", "]"}) |
| template<class Container , class F > | |
| Container | elementWisePairOp (const Container &lhs, const Container &rhs, F binaryFunction) |
| template<class Scalar , class Container , class F > | |
| Container | elementWiseScalarOp (const Scalar &lhs, const Container &rhs, F binaryFunction) |
| template<class Container > | |
| auto | L2Norm (const Container &c) |
Collection of utility functions and operators for iterable data containers like std::array, std::vector, etc.
|
inline |
Applies an element wise binary function F to two containers.
If the containers differ in size the F is only applied to as many elements as are in the smaller container.
| lhs | |
| rhs | |
| binaryFunction |

|
inline |
| auto ArrayUtils::L2Norm | ( | const Container & | c | ) |
Calculates the L2 norm for a given container.
| Container |
| c |

| std::string ArrayUtils::to_string | ( | const Container & | container, |
| const std::string & | delimiter = ", ", |
||
| const std::array< std::string, 2 > & | surround = {"[", "]"} |
||
| ) |
Generates a string representation of a container which fulfills the Container requirement (provide cbegin and cend).
| Container | Type of Container. |
| container. | |
| delimiter | String that is put between items. |
| surround | Strings to be put before and after the listing (e.g. brackets). |
