27 #ifndef ANTIOCH_VECTOR_UTILS_DECL_H
28 #define ANTIOCH_VECTOR_UTILS_DECL_H
30 #ifdef ANTIOCH_METAPROGRAMMING_H
31 # error vector_utils_decl.h must be included before metaprogramming.h
49 operator<< (std::ostream& output, const std::vector<T>& a);
54 operator* (
const std::vector<T>& src,
const T & mul);
59 operator/ (
const std::vector<T>& src,
const T & mul);
69 template <
typename T,
typename NewScalar>
92 template <typename T1, typename T2>
95 zero_clone(std::vector<T1>& output, const std::vector<T2>& example);
97 template <typename T, typename Scalar>
100 constant_clone(const std::vector<T>& example, const Scalar& value);
103 template <typename T>
107 template <typename T, typename VectorScalar>
109 std::vector<T>
custom_clone(const std::vector<T> & vec, const VectorScalar & vecsrc, const std::vector<unsigned int> & indexes);
114 #endif //ANTIOCH_VECTOR_UTILS_DECL_H
std::vector< T > operator/(const std::vector< T > &src, const T &mul)
T custom_clone(const T &, const VectorScalar &values, unsigned int indexes)
std::vector< T > operator*(const std::vector< T > &src, const T &mul)
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > constant_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex, const Scalar &value)
void set_zero(_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &a)
The parameters are reduced parameters.
_Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > zero_clone(const _Matrix< _Scalar, _Rows, _Cols, _Options, _MaxRows, _MaxCols > &ex)