algebra/include/nil/crypto3/algebra/vector/math.hpp
Go to the documentation of this file.
constexpr matrix< U, N, M > elementwise(F f, const matrix< T, N, M > &m, const Matrices &...matrices)
applies a function elementwise between many matrices
Definition: matrix/utility.hpp:55
constexpr matrix< nil::crypto3::detail::remove_complex_t< T >, M, N > imag(const matrix< T, M, N > &m)
computes the elementwise imag
Definition: algebra/include/nil/crypto3/algebra/matrix/math.hpp:81
constexpr matrix< T, M, N > conj(const matrix< T, M, N > &m)
computes the elementwise complex conjugate
Definition: algebra/include/nil/crypto3/algebra/matrix/math.hpp:57
constexpr matrix< nil::crypto3::detail::remove_complex_t< T >, M, N > real(const matrix< T, M, N > &m)
computes the elementwise real
Definition: algebra/include/nil/crypto3/algebra/matrix/math.hpp:69
constexpr nil::crypto3::detail::remove_complex_t< T > abs(T x)
computes the absolute value
Definition: algebra/include/nil/crypto3/algebra/scalar/math.hpp:76
constexpr double sqrt(double x)
computes the square root
Definition: algebra/include/nil/crypto3/algebra/scalar/math.hpp:47
constexpr T min(const vector< T, N > &v)
computes the minimum valued element
Definition: algebra/include/nil/crypto3/algebra/vector/math.hpp:135
constexpr vector< nil::crypto3::detail::remove_complex_t< T >, N > imag(const vector< T, N > &v)
computes the elementwise imag
Definition: algebra/include/nil/crypto3/algebra/vector/math.hpp:85
constexpr T dot(const vector< T, N > &a, const vector< T, N > &b)
computes the dot product
Definition: algebra/include/nil/crypto3/algebra/vector/math.hpp:110
constexpr vector< nil::crypto3::detail::remove_complex_t< T >, N > real(const vector< T, N > &v)
computes the elementwise real
Definition: algebra/include/nil/crypto3/algebra/vector/math.hpp:73
constexpr T sum(const vector< T, N > &v)
computes the sum of elements
Definition: algebra/include/nil/crypto3/algebra/vector/math.hpp:124
constexpr std::size_t max_index(const vector< T, N > &v)
computes the index of the maximum valued element
Definition: algebra/include/nil/crypto3/algebra/vector/math.hpp:177
constexpr std::size_t min_index(const vector< T, N > &v)
computes the index of the minimum valued element
Definition: algebra/include/nil/crypto3/algebra/vector/math.hpp:158
constexpr U accumulate(const vector< T, N > &v, U init, F &&f)
accumulates an operation across a vector
Definition: vector/utility.hpp:70
constexpr T max(const vector< T, N > &v)
computes the maximum valued element
Definition: algebra/include/nil/crypto3/algebra/vector/math.hpp:146
Definition: pair.hpp:31