Logo MTL4

mtl::vector::crtp_vector_assign< Vector, ValueType, SizeType > Struct Template Reference

Base class to provide vector assignment operators generically. More...

#include <crtp_base_vector.hpp>

List of all members.

Public Member Functions

template<typename E >
boost::disable_if
< boost::is_same< Vector, E >
, typename crtp_assign< Vector,
E >::type >::type 
operator= (const E &e)
 Templated assignment implemented by functor to allow for partial specialization.
template<class E >
crtp_plus_assign< Vector, E >::type operator+= (const E &e)
 Assign-add vector expression.
template<class E >
crtp_minus_assign< Vector, E >
::type 
operator-= (const E &e)
 Assign-subtract vector expression.
template<typename Factor >
vec_scal_times_asgn_expr
< Vector, Factor > 
operator*= (const Factor &alpha)
 Scale vector (in place) with scalar value.
template<typename Factor >
vec_scal_div_asgn_expr< Vector,
Factor > 
operator/= (const Factor &alpha)
 Devide vector (in place) by a scalar value.
void checked_change_dim (SizeType s)
 Check whether vector size is compatible or if vector is 0 change it s.


Detailed Description

template<typename Vector, typename ValueType, typename SizeType>
struct mtl::vector::crtp_vector_assign< Vector, ValueType, SizeType >

Base class to provide vector assignment operators generically.

Member Function Documentation

template<typename Vector, typename ValueType, typename SizeType>
template<typename Factor >
vec_scal_times_asgn_expr<Vector, Factor> mtl::vector::crtp_vector_assign< Vector, ValueType, SizeType >::operator*= ( const Factor &  alpha  )  [inline]

Scale vector (in place) with scalar value.

In the future, row vectors be possibly scaled by a matrix


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


mtl::vector::crtp_vector_assign< Vector, ValueType, SizeType > Struct Template Reference -- MTL 4 -- Peter Gottschling and Andrew Lumsdaine -- Gen. with rev. 7542 on 7 Apr 2011 by doxygen 1.5.9 -- © 2010 by SimuNova UG.