ndarray
NumPy-friendly multidimensional arrays in C++
|
Code to apply arbitrary scalar functors to arrays. More...
#include "ndarray_fwd.h"
#include "ndarray/detail/UnaryOp.h"
#include <boost/mpl/and.hpp>
#include <boost/utility/enable_if.hpp>
Go to the source code of this file.
Classes | |
struct | ndarray::result_of::vectorize< T1, T2, T3 > |
struct | ndarray::result_of::vectorize< T1, T2, void > |
Functions | |
template<typename Scalar , typename UnaryFunction > | |
boost::enable_if< typenameExpressionTraits< Scalar >::IsScalar, typenameUnaryFunction::result_type >::type | ndarray::vectorize (UnaryFunction const &functor, Scalar const &scalar) |
Apply a non-mutating unary function object to a scalar. | |
template<typename Derived , typename UnaryFunction > | |
detail::UnaryOpExpression< Derived, UnaryFunction > | ndarray::vectorize (UnaryFunction const &functor, ExpressionBase< Derived > const &operand) |
Apply a non-mutating unary function object to each element of a multidimensional Expression. | |
template<typename Scalar1 , typename Scalar2 , typename BinaryFunction > | |
boost::enable_if_c<(ExpressionTraits< Scalar1 >::IsScalar::value &&ExpressionTraits< Scalar2 >::IsScalar::value), typenameBinaryFunction::result_type >::type | ndarray::vectorize (BinaryFunction const &functor, Scalar1 const &scalar1, Scalar2 const &scalar2) |
Apply a non-mutating binary function object to a pair of scalars. | |
template<typename Derived1 , typename Derived2 , typename BinaryFunction > | |
detail::BinaryOpExpression< Derived1, Derived2, BinaryFunction > | ndarray::vectorize (BinaryFunction const &functor, ExpressionBase< Derived1 > const &operand1, ExpressionBase< Derived2 > const &operand2) |
Apply a non-mutating binary function object pairwise to the elements of two multidimensional Expressions. | |
Code to apply arbitrary scalar functors to arrays.