1 #ifndef VIENNACL_LINALG_MAXMIN_HPP_
2 #define VIENNACL_LINALG_MAXMIN_HPP_
46 template<
typename NumericT >
63 template<
typename ScalarType>
67 max(viennacl::vector_base<ScalarType>
const &
v1)
71 const viennacl::vector_base<ScalarType>,
76 template<
typename LHS,
typename RHS,
typename OP>
80 max(viennacl::vector_expression<const LHS, const RHS, OP>
const &
vector)
83 const viennacl::vector_expression<const LHS, const RHS, OP>,
90 template<
typename NumericT >
107 template<
typename ScalarType>
109 const viennacl::vector_base<ScalarType>,
111 min(viennacl::vector_base<ScalarType>
const &
v1)
115 const viennacl::vector_base<ScalarType>,
119 template<
typename ScalarType>
121 const viennacl::vector_base<ScalarType>,
127 const viennacl::vector_base<ScalarType>,
132 template<
typename LHS,
typename RHS,
typename OP>
134 const viennacl::vector_expression<const LHS, const RHS, OP>,
136 min(viennacl::vector_expression<const LHS, const RHS, OP>
const &
vector)
139 const viennacl::vector_expression<const LHS, const RHS, OP>,
Dispatch facility for distinguishing between ublas, STL and ViennaCL types.
This file provides the forward declarations for the main types used within ViennaCL.
A proxy for scalar expressions (e.g. from inner vector products)
An expression template class that represents a binary operation that yields a vector.
A tag class representing the maximum of a vector.
Main namespace in ViennaCL. Holds all the basic types such as vector, matrix, etc. and defines operations upon them.
viennacl::vector< float > v1
A tag class representing the minimum of a vector.
NumericT max(std::vector< NumericT > const &v1)
A collection of compile time type deductions.
Simple enable-if variant that uses the SFINAE pattern.
NumericT min(std::vector< NumericT > const &v1)