Class implementing vector transformation expressions. More...
#include <shark/LinAlg/BLAS/vector_expression.hpp>
Public Types | |
typedef value_type | const_reference |
typedef value_type | reference |
typedef value_type const * | const_pointer |
typedef value_type const * | pointer |
typedef E::const_index_pointer | const_index_pointer |
typedef index_pointer< E >::type | index_pointer |
typedef unknown_storage_tag | storage_category |
typedef E::evaluation_category | evaluation_category |
typedef transform_iterator< typename E::const_iterator, functor_type > | const_iterator |
typedef const_iterator | iterator |
Public Member Functions | |
vector_unary (vector_expression< E > const &e, F const &functor) | |
size_type | size () const |
expression_closure_type const & | expression () const |
template<class VecX > | |
void | assign_to (vector_expression< VecX > &x, scalar_type alpha=scalar_type(1)) const |
template<class VecX > | |
void | plus_assign_to (vector_expression< VecX > &x, scalar_type alpha=scalar_type(1)) const |
template<class VecX > | |
void | minus_assign_to (vector_expression< VecX > &x, scalar_type alpha=scalar_type(1)) const |
const_reference | operator() (index_type i) const |
const_reference | operator[] (index_type i) const |
const_iterator | begin () const |
const_iterator | end () const |
![]() | |
const expression_type & | operator() () const |
expression_type & | operator() () |
Class implementing vector transformation expressions.
transforms a vector Expression e of type E using a Function f of type F as an elementwise transformation f(e(i)) This transformation needs f to be constant, meaning that applying f(x), f(y), f(z) yields the same results independent of the order of application. Also F must provide a type F::result_type indicating the result type of the functor.
Definition at line 227 of file vector_expression.hpp.
typedef E::const_index_pointer shark::blas::vector_unary< E, F >::const_index_pointer |
Definition at line 243 of file vector_expression.hpp.
typedef transform_iterator<typename E::const_iterator,functor_type> shark::blas::vector_unary< E, F >::const_iterator |
Definition at line 303 of file vector_expression.hpp.
typedef value_type const* shark::blas::vector_unary< E, F >::const_pointer |
Definition at line 239 of file vector_expression.hpp.
typedef value_type shark::blas::vector_unary< E, F >::const_reference |
Definition at line 237 of file vector_expression.hpp.
typedef E::evaluation_category shark::blas::vector_unary< E, F >::evaluation_category |
Definition at line 249 of file vector_expression.hpp.
typedef index_pointer<E>::type shark::blas::vector_unary< E, F >::index_pointer |
Definition at line 244 of file vector_expression.hpp.
typedef const_iterator shark::blas::vector_unary< E, F >::iterator |
Definition at line 304 of file vector_expression.hpp.
typedef value_type const* shark::blas::vector_unary< E, F >::pointer |
Definition at line 240 of file vector_expression.hpp.
typedef value_type shark::blas::vector_unary< E, F >::reference |
Definition at line 238 of file vector_expression.hpp.
typedef unknown_storage_tag shark::blas::vector_unary< E, F >::storage_category |
Definition at line 248 of file vector_expression.hpp.
|
inline |
Definition at line 253 of file vector_expression.hpp.
|
inline |
Definition at line 268 of file vector_expression.hpp.
References shark::blas::assign(), shark::blas::vector_scalar_multiply< E >::begin(), and shark::blas::vector_scalar_multiply< E >::end().
|
inline |
Definition at line 307 of file vector_expression.hpp.
|
inline |
Definition at line 310 of file vector_expression.hpp.
|
inline |
Definition at line 262 of file vector_expression.hpp.
|
inline |
Definition at line 286 of file vector_expression.hpp.
References shark::blas::vector_scalar_multiply< E >::assign_to(), shark::blas::vector_scalar_multiply< E >::minus_assign_to(), and shark::blas::vector_scalar_multiply< E >::size().
|
inline |
Definition at line 295 of file vector_expression.hpp.
|
inline |
Definition at line 299 of file vector_expression.hpp.
|
inline |
Definition at line 278 of file vector_expression.hpp.
References shark::blas::vector_scalar_multiply< E >::assign_to(), shark::blas::vector_scalar_multiply< E >::plus_assign_to(), and shark::blas::vector_scalar_multiply< E >::size().
|
inline |
Definition at line 257 of file vector_expression.hpp.