CUV
0.9.201304091348
|
Enumerations | |
enum | cuv::NullaryFunctor { NF_FILL, NF_SEQ } |
Nullary functors for vectors and matrices. More... |
Functions | |
template<class __value_type , class __memory_space_type > | |
void | cuv::apply_0ary_functor (tensor< __value_type, __memory_space_type > &v, const NullaryFunctor &sf) |
Apply a pointwise nullary functor to a vector. | |
template<class __value_type , class __memory_space_type > | |
void | cuv::apply_0ary_functor (tensor< __value_type, __memory_space_type, column_major > &v, const NullaryFunctor &sf) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<class V1 , class M > | |
void | cuv::apply_0ary_functor (tensor< V1, M > &v, const NullaryFunctor &sf, const V1 ¶m) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<class V1 , class M > | |
void | cuv::apply_0ary_functor (tensor< V1, M, column_major > &v, const NullaryFunctor &sf, const V1 ¶m) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
template<class __value_type , class __memory_space_type , class __memory_layout_type > | |
void | cuv::sequence (tensor< __value_type, __memory_space_type, __memory_layout_type > &v) |
Fill a vector with a sequence of numbers. | |
template<class __value_type , class __memory_space_type , class __memory_layout_type , class S > | |
void | cuv::fill (tensor< __value_type, __memory_space_type, __memory_layout_type > &v, const S &p) |
Fill a vector with a value. |
enum cuv::NullaryFunctor |
Nullary functors for vectors and matrices.
Definition at line 56 of file tensor_ops.hpp.
void cuv::apply_0ary_functor | ( | tensor< __value_type, __memory_space_type > & | v, |
const NullaryFunctor & | sf | ||
) |
Apply a pointwise nullary functor to a vector.
v | Target vector |
sf | NullaryFunctor to apply |
void cuv::apply_0ary_functor | ( | tensor< V1, M > & | v, |
const NullaryFunctor & | sf, | ||
const V1 & | param | ||
) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
Apply a pointwise nullary functor with a scalar parameter to a vector.
v | Target vector |
sf | NullaryFunctor to apply |
param | scalar parameter |
void cuv::fill | ( | tensor< __value_type, __memory_space_type, __memory_layout_type > & | v, |
const S & | p | ||
) |
Fill a vector with a value.
v | Destination vector |
p | Value to fill vector with |
This is a convenience wrapper that applies the nullary functor NF_FILL to v.
Definition at line 120 of file tensor_ops.hpp.
void cuv::sequence | ( | tensor< __value_type, __memory_space_type, __memory_layout_type > & | v | ) |
Fill a vector with a sequence of numbers.
v | Destination vector |
This is a convenience wrapper that applies the nullary functor NF_SEQ to v.
Definition at line 109 of file tensor_ops.hpp.