algebra/include/nil/crypto3/algebra/vector/math.hpp File Reference
+ Include dependency graph for algebra/include/nil/crypto3/algebra/vector/math.hpp:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 nil
 
 nil::crypto3
 
 nil::crypto3::algebra
 

Functions

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