vector/operators.hpp File Reference
+ Include dependency graph for vector/operators.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 bool nil::crypto3::algebra::operator!= (const vector< T, N > &a, const vector< T, N > &b)
 checks inequality of two vectors More...
 
template<typename T , std::size_t N>
constexpr vector< T, N > nil::crypto3::algebra::operator* (const vector< T, N > &a, const vector< T, N > &b)
 computes the Hadamard product More...
 
template<typename T , std::size_t N>
constexpr vector< T, N > nil::crypto3::algebra::operator* (const vector< T, N > &v, T a)
 computes the product of a vector and a scalar More...
 
template<typename T , std::size_t N>
constexpr vector< T, N > nil::crypto3::algebra::operator* (T a, const vector< T, N > &v)
 computes the product of a vector and a scalar More...
 
template<typename T , std::size_t N>
constexpr vector< T, N > nil::crypto3::algebra::operator+ (const vector< T, N > &a, const vector< T, N > &b)
 computes the vector sum More...
 
template<typename T , std::size_t N>
constexpr vector< T, N > nil::crypto3::algebra::operator+ (const vector< T, N > &v, T a)
 computes the sum of a vector and a scalar More...
 
template<typename T , std::size_t N>
constexpr vector< T, N > nil::crypto3::algebra::operator+ (T a, const vector< T, N > &v)
 computes the sum of a vector and a scalar More...
 
template<typename T , std::size_t N>
constexpr vector< T, N > nil::crypto3::algebra::operator/ (const vector< T, N > &a, const vector< T, N > &b)
 computes the elementwise vector quotient More...
 
template<typename T , std::size_t N>
constexpr vector< T, N > nil::crypto3::algebra::operator/ (T a, const vector< T, N > &v)
 computes the quotient between a vector and a scalar More...
 
template<typename T , std::size_t N>
constexpr bool nil::crypto3::algebra::operator== (const vector< T, N > &a, const vector< T, N > &b)
 checks equality of two vectors More...