shark::blas::vector_scalar_multiply< E > Class Template Reference

Implements multiplications of a vector by a scalar. More...

#include <shark/LinAlg/BLAS/vector_expression.hpp>

+ Inheritance diagram for shark::blas::vector_scalar_multiply< E >:

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, scalar_multiply1< value_type, scalar_type > > const_iterator
 
typedef const_iterator iterator
 

Public Member Functions

 vector_scalar_multiply (vector_expression< E > const &e, scalar_type scalar)
 
size_type size () const
 
expression_closure_type const & expression () const
 
const_reference operator() (index_type i) const
 
const_reference operator[] (index_type i) 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_iterator begin () const
 
const_iterator end () const
 
- Public Member Functions inherited from shark::blas::vector_expression< vector_scalar_multiply< E > >
const expression_type & operator() () const
 
expression_type & operator() ()
 

Detailed Description

template<class E>
class shark::blas::vector_scalar_multiply< E >

Implements multiplications of a vector by a scalar.

Definition at line 41 of file vector_expression.hpp.

Member Typedef Documentation

§ const_index_pointer

template<class E>
typedef E::const_index_pointer shark::blas::vector_scalar_multiply< E >::const_index_pointer

Definition at line 56 of file vector_expression.hpp.

§ const_iterator

template<class E>
typedef transform_iterator<typename E::const_iterator,scalar_multiply1<value_type, scalar_type> > shark::blas::vector_scalar_multiply< E >::const_iterator

Definition at line 107 of file vector_expression.hpp.

§ const_pointer

template<class E>
typedef value_type const* shark::blas::vector_scalar_multiply< E >::const_pointer

Definition at line 52 of file vector_expression.hpp.

§ const_reference

template<class E>
typedef value_type shark::blas::vector_scalar_multiply< E >::const_reference

Definition at line 50 of file vector_expression.hpp.

§ evaluation_category

template<class E>
typedef E::evaluation_category shark::blas::vector_scalar_multiply< E >::evaluation_category

Definition at line 62 of file vector_expression.hpp.

§ index_pointer

template<class E>
typedef index_pointer<E>::type shark::blas::vector_scalar_multiply< E >::index_pointer

Definition at line 57 of file vector_expression.hpp.

§ iterator

Definition at line 108 of file vector_expression.hpp.

§ pointer

template<class E>
typedef value_type const* shark::blas::vector_scalar_multiply< E >::pointer

Definition at line 53 of file vector_expression.hpp.

§ reference

template<class E>
typedef value_type shark::blas::vector_scalar_multiply< E >::reference

Definition at line 51 of file vector_expression.hpp.

§ storage_category

template<class E>
typedef unknown_storage_tag shark::blas::vector_scalar_multiply< E >::storage_category

Definition at line 61 of file vector_expression.hpp.

Constructor & Destructor Documentation

§ vector_scalar_multiply()

template<class E>
shark::blas::vector_scalar_multiply< E >::vector_scalar_multiply ( vector_expression< E > const &  e,
scalar_type  scalar 
)
inline

Definition at line 66 of file vector_expression.hpp.

Member Function Documentation

§ assign_to()

template<class E>
template<class VecX >
void shark::blas::vector_scalar_multiply< E >::assign_to ( vector_expression< VecX > &  x,
scalar_type  alpha = scalar_type(1) 
) const
inline

§ begin()

template<class E>
const_iterator shark::blas::vector_scalar_multiply< E >::begin ( ) const
inline

§ end()

template<class E>
const_iterator shark::blas::vector_scalar_multiply< E >::end ( ) const
inline

§ expression()

template<class E>
expression_closure_type const& shark::blas::vector_scalar_multiply< E >::expression ( ) const
inline

Definition at line 75 of file vector_expression.hpp.

§ minus_assign_to()

template<class E>
template<class VecX >
void shark::blas::vector_scalar_multiply< E >::minus_assign_to ( vector_expression< VecX > &  x,
scalar_type  alpha = scalar_type(1) 
) const
inline

§ operator()()

template<class E>
const_reference shark::blas::vector_scalar_multiply< E >::operator() ( index_type  i) const
inline

Definition at line 81 of file vector_expression.hpp.

§ operator[]()

template<class E>
const_reference shark::blas::vector_scalar_multiply< E >::operator[] ( index_type  i) const
inline

Definition at line 85 of file vector_expression.hpp.

§ plus_assign_to()

template<class E>
template<class VecX >
void shark::blas::vector_scalar_multiply< E >::plus_assign_to ( vector_expression< VecX > &  x,
scalar_type  alpha = scalar_type(1) 
) const
inline

§ size()


The documentation for this class was generated from the following file: