cotila  1.2.1
A compile time linear algebra system
Functions
math.h File Reference

Mathematical operations on vectors. More...

#include <cotila/detail/type_traits.h>
#include <cotila/vector/utility.h>
#include <cotila/vector/vector.h>
#include <cotila/scalar/math.h>

Go to the source code of this file.

Functions

template<typename T , std::size_t N>
constexpr vector< T, N > cotila::conj (const vector< T, N > &v)
 computes the elementwise complex conjugate More...
 
template<typename T , std::size_t N>
constexpr vector< T, N > cotila::sqrt (const vector< T, N > &v)
 computes the elementwise square root More...
 
template<typename T , std::size_t N>
constexpr vector< detail::remove_complex_t< T >, N > cotila::real (const vector< T, N > &v)
 computes the elementwise real More...
 
template<typename T , std::size_t N>
constexpr vector< detail::remove_complex_t< T >, N > cotila::imag (const vector< T, N > &v)
 computes the elementwise imag More...
 
template<typename T , std::size_t N>
constexpr vector< detail::remove_complex_t< T >, N > cotila::abs (const vector< T, N > &v)
 computes the elementwise absolute value More...
 
template<typename T , std::size_t N>
constexpr T cotila::dot (const vector< T, N > &a, const vector< T, N > &b)
 computes the dot product More...
 
template<typename T , std::size_t N>
constexpr T cotila::sum (const vector< T, N > &v)
 computes the sum of elements More...
 
template<typename T , std::size_t N>
constexpr T cotila::min (const vector< T, N > &v)
 computes the minimum valued element More...
 
template<typename T , std::size_t N>
constexpr T cotila::max (const vector< T, N > &v)
 computes the maximum valued element More...
 
template<typename T , std::size_t N>
constexpr std::size_t cotila::min_index (const vector< T, N > &v)
 computes the index of the minimum valued element More...
 
template<typename T , std::size_t N>
constexpr std::size_t cotila::max_index (const vector< T, N > &v)
 computes the index of the maximum valued element More...