35#ifndef _BLAZE_MATH_VECTOR_H_
36#define _BLAZE_MATH_VECTOR_H_
67template<
typename VT,
bool TF >
70template<
typename VT,
bool TF >
73template<
typename VT,
bool TF >
76template<
typename VT,
bool TF >
79template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
82template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
85template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
88template<
typename VT1,
bool TF1,
typename VT2,
bool TF2 >
91template<
typename VT1,
typename VT2,
bool TF >
94template<
typename VT >
95decltype(
auto)
reverse( VT&& v );
189 return (*v) * (*v) * (*v);
244template<
typename VT1
279template<
typename VT1
285 return inner( *lhs, *rhs );
314template<
typename VT1
320 return inner( *lhs, *rhs );
348template<
typename VT1
384template<
typename VT1
389 return (*lhs) % (*rhs);
411template<
typename VT >
414 return elements( *v, [
max=(*v).size()-1UL](
size_t i ){ return max - i; }, (*v).size() );
430template<
typename VT,
bool TF >
431std::ostream&
operator<<( std::ostream& os,
const Vector<VT,TF>& v );
450 if( tmp.size() == 0UL ) {
455 for(
size_t i=0UL; i<tmp.size(); ++i )
460 for(
size_t i=0UL; i<tmp.size(); ++i )
461 os <<
"( " << std::setw( 11UL ) << tmp[i] <<
" )\n";
Header file for auxiliary alias declarations.
typename T::CompositeType CompositeType_t
Alias declaration for nested CompositeType type definitions.
Definition Aliases.h:110
Base class for N-dimensional vectors.
Definition Vector.h:82
Header file for the Vector CRTP base class.
decltype(auto) max(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Computes the componentwise maximum of the dense matrices lhs and rhs.
Definition DMatDMatMapExpr.h:1375
bool isUniform(const DenseMatrix< MT, SO > &dm)
Checks if the given dense matrix is a uniform matrix.
Definition DenseMatrix.h:1766
decltype(auto) operator<<(const DenseMatrix< MT1, SO1 > &lhs, const DenseMatrix< MT2, SO2 > &rhs)
Left-shift operator for the elementwise left-shift of a dense matrix.
Definition DMatDMatMapExpr.h:1570
decltype(auto) transTo(const DenseVector< VT, TF > &dv)
Conditional calculation of the transpose of the given dense vector.
Definition DVecTransExpr.h:783
decltype(auto) elements(Vector< VT, TF > &vector, REAs... args)
Creating a view on a selection of elements of the given vector.
Definition Elements.h:143
decltype(auto) pow2(const Matrix< MT, SO > &m)
Computes the square for each single element of the matrix m.
Definition Matrix.h:686
decltype(auto) pow3(const Matrix< MT, SO > &m)
Computes the cube for each single element of the matrix m.
Definition Matrix.h:712
decltype(auto) reverse(MT &&m)
Reverse the rows or columns of a matrix.
Definition Matrix.h:878
decltype(auto) pow4(const Matrix< MT, SO > &m)
Computes the quadruple for each single element of the matrix m.
Definition Matrix.h:738
decltype(auto) inner(const Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs)
Scalar product (dot/inner product) of two vectors ( ).
Definition Vector.h:248
decltype(auto) outer(const Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs)
Outer product of two vectors ( ).
Definition Vector.h:352
decltype(auto) dot(const Vector< VT1, TF1 > &lhs, const Vector< VT2, TF2 > &rhs)
Scalar product (dot/inner product) of two vectors ( ).
Definition Vector.h:283
decltype(auto) cross(const Vector< VT1, TF > &lhs, const Vector< VT2, TF > &rhs)
Cross product of two vectors ( ).
Definition Vector.h:387
Header file for the vector transpose flag types.
constexpr bool rowVector
Transpose flag for row vectors.
Definition TransposeFlag.h:73
Header file for all forward declarations for expression class templates.
Header file for the add shim.
Header file for the div shim.
Header file for the mult shim.
Header file for the sub shim.
Header file for the implementation of the Elements view.