Package: Geometry        GrAL: Packages | Concepts | Homepage

GrAL::algebraic_operators_with_scalars_on_arrays Namespace Reference
[Componentwise algebraic array operations]

Namespace for binary operators on arrays involving scalars. More...


Functions

template<class P , class S >
boost::enable_if
< use_scalar_mult_from_right
< P, S >, P >::type 
operator* (P const &lhs, S const &rhs)
 Multiplication with a scalar from the right.
template<class P , class S >
boost::enable_if
< use_scalar_mult_from_left< P,
S >, P >::type 
operator* (S const &lhs, P const &rhs)
 Multiplication with a scalar from the left.
template<class P , class S >
boost::enable_if
< use_scalar_division< P, S >
, P >::type 
operator/ (P const &lhs, S const &rhs)
 Division by a scalar.


Detailed Description

Namespace for binary operators on arrays involving scalars.

These operators get injected into the global namespace below in order to be accessible. Overload control is provided by using use_componentwise_operations_with_scalar or its refinements for individual operators (uses boost::enable_if).


©  Guntram Berti 1997-2009. See the GrAL Homepage for up-to-date information.

Generated on Tue Mar 31 18:54:01 2009 for Geometry by doxygen 1.5.8