◐ Shell
clean mode source ↗

Vector

template<typename T, std::size_t Dims, typename S>
Vector<T,Dims>& operator+=(Vector<T,Dims>& a, const Vector<S,Dims>& b) Element-wise compound addition-assignment template<typename T, std::size_t Dims, typename S>
Vector<T,Dims>& operator-=(Vector<T,Dims>& a, const Vector<S,Dims>& b) Element-wise compound subtraction-assignment template<typename T, std::size_t Dims, typename S>
Vector<T,Dims>& operator*=(Vector<T,Dims>& a, const S& fac) Element-wise compound multiplication-assignment template<typename T, std::size_t Dims, typename S>
Vector<T,Dims>& operator/=(Vector<T,Dims>& a, const S& fac) Element-wise compound division-assignment template<typename T, std::size_t Dims>
Vector<T,Dims> operator+(const Vector<T,Dims>& a, const Vector<T,Dims>& b) Element-wise addition operator taking two Vector objects template<typename T, std::size_t Dims>
Vector<T,Dims> operator-(const Vector<T, Dims>& a, const Vector<T, Dims>& b) Element-wise subtraction operator taking two Vector objects template<typename T, std::size_t Dims, typename S>
Vector<T,Dims> operator*(const Vector<T, Dims>& vec, const S& fac) Element-wise multiplication operator taking a Vector and a factor template<typename T, std::size_t Dims, typename S>
Vector<T, Dims> operator*(const S& fac, const Vector<T, Dims>& vec) Element-wise multiplication operator taking a factor and a Vector template<typename T, std::size_t Dims, typename S>
Vector<T,Dims> operator/(const Vector<T, Dims>& vec, const S& fac) Element-wise divison operator taking a Vector and a divisor template<typename T, std::size_t Dims, typename Lambda>
Vector<T,Dims> elementwise(const Vector<T,Dims>& a, const Vector<T,Dims>& b, const Lambda& op) Combines two vectors element-wise using a user-defined function template<typename T, std::size_t Dims>
Vector<T,Dims> elementwiseMin(const Vector<T,Dims>& a, const Vector<T,Dims>& b) Computes the element-wise minimum of two Vector objects template<typename T, std::size_t Dims>
Vector<T,Dims> elementwiseMax(const Vector<T,Dims>& a, const Vector<T,Dims>& b) Computes the element-wise maximum of two Vector objects template<typename T, std::size_t Dims>
T sumOfSquares(const Vector<T,Dims>& vec) Computes the sum of the squares of all elements of this Vector template<typename T, std::size_t Dims>
Vector<T,Dims> elementwiseProduct(const Vector<T,Dims>& a, const Vector<T,Dims>& b) Computes the element-wise product of two Vector objects template<typename T, std::size_t Dims>
Vector<T,Dims> elementwiseDivision(const Vector<T,Dims>& a, const Vector<T,Dims>& b) Computes the element-wise division of two Vector objects template<typename T, std::size_t Dims>
Vector<T,Dims> elementwiseRemainder(const Vector<T,Dims>& a, const Vector<T,Dims>& b) Computes the element-wise remainder of two Vector objects template<typename T, std::size_t Dims>
Vector<T,Dims> elementwiseModulo(const Vector<T,Dims>& a, const Vector<T,Dims>& b) Computes the element-wise remainder of two Vector objects