cotila  1.2.1
A compile time linear algebra system

◆ abs()

template<typename T , std::size_t N>
constexpr vector<detail::remove_complex_t<T>, N> cotila::abs ( const vector< T, N > &  v)
Parameters
van N-vector of type T
Returns
an N-vector $ \begin{bmatrix} \lvert v_1 \rvert & \ldots & \lvert v_N \rvert \end{bmatrix} $ of type T

Computes the elementwise absolute value of a vector.