LSSTApplications  10.0-2-g4f67435,11.0.rc2+1,11.0.rc2+12,11.0.rc2+3,11.0.rc2+4,11.0.rc2+5,11.0.rc2+6,11.0.rc2+7,11.0.rc2+8
LSSTDataManagementBasePackage
Namespaces | Functions
operators.h File Reference

Arithmetic and logical operators for Array. More...

#include "ndarray/Array.h"
#include <boost/call_traits.hpp>
#include <boost/functional.hpp>
#include <boost/utility/enable_if.hpp>
#include "ndarray/detail/UnaryOp.h"
#include "ndarray/detail/BinaryOp.h"
#include "ndarray/types.h"

Go to the source code of this file.

Namespaces

 ndarray
 

Functions

template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator+ (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator+ (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator+ (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator- (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator- (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator- (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator* (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator* (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator* (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator/ (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator/ (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator/ (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator% (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator% (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator% (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator^ (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator^ (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator^ (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator| (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator| (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator| (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator& (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator& (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator& (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator<< (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator<< (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator<< (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator>> (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::operator>> (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::operator>> (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::equal (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::equal (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::equal (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::not_equal (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::not_equal (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::not_equal (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::less (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::less (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::less (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::greater (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::greater (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::greater (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::less_equal (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::less_equal (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::less_equal (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::great_equal (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::great_equal (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::great_equal (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::logical_and (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::logical_and (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::logical_and (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::logical_or (ExpressionBase< Operand > const &operand, Scalar const &scalar)
 
template<typename Operand , typename Scalar >
< unspecified-expression-type > ndarray::logical_or (Scalar const &scalar, ExpressionBase< Operand > const &operand)
 
template<typename Operand1 , typename Operand2 >
< unspecified-expression-type > ndarray::logical_or (ExpressionBase< Operand1 > const &operand1, ExpressionBase< Operand2 > const &operand2)
 
template<typename Operand >
< unspecified-expression-type > ndarray::operator- (ExpressionBase< Operand > const &operand)
 
template<typename Operand >
< unspecified-expression-type > ndarray::logical_not (ExpressionBase< Operand > const &operand)
 
template<typename Operand >
< unspecified-expression-type > ndarray::operator~ (ExpressionBase< Operand > const &operand)
 
template<typename Scalar >
boost::enable_if< typename
ExpressionTraits< Scalar >
::IsScalar, bool >::type 
ndarray::any (Scalar const &scalar)
 
template<typename Derived >
bool ndarray::any (ExpressionBase< Derived > const &expr)
 Return true if any of the elements of the given expression are true. More...
 
template<typename Scalar >
boost::enable_if< typename
ExpressionTraits< Scalar >
::IsScalar, bool >::type 
ndarray::all (Scalar const &scalar)
 
template<typename Derived >
bool ndarray::all (ExpressionBase< Derived > const &expr)
 Return true if all of the elements of the given expression are true. More...
 
template<typename Scalar1 , typename Scalar2 >
boost::enable_if
< boost::mpl::and_< typename
ExpressionTraits< Scalar1 >
::IsScalar, typename
ExpressionTraits< Scalar2 >
::IsScalar >, bool >::type 
ndarray::allclose (Scalar1 const &scalar1, Scalar2 const &scalar2, double tol=1E-8)
 
template<typename Scalar , typename Derived >
boost::enable_if< typename
ExpressionTraits< Scalar >
::IsScalar, bool >::type 
ndarray::allclose (Scalar const &scalar, ExpressionBase< Derived > const &expr, double tol=1E-8)
 
template<typename Scalar , typename Derived >
boost::enable_if< typename
ExpressionTraits< Scalar >
::IsScalar, bool >::type 
ndarray::allclose (ExpressionBase< Derived > const &expr, Scalar const &scalar, double tol=1E-8)
 
template<typename Derived1 , typename Derived2 >
bool ndarray::allclose (ExpressionBase< Derived1 > const &expr1, ExpressionBase< Derived2 > const &expr2, double tol=1E-8)
 
template<typename Scalar >
boost::enable_if< typename
ExpressionTraits< Scalar >
::IsScalar, Scalar >::type 
ndarray::sum (Scalar const &scalar)
 
template<typename Derived >
Derived::Element ndarray::sum (ExpressionBase< Derived > const &expr)
 Return the sum of all elements of the given expression. More...
 

Detailed Description

Arithmetic and logical operators for Array.

Definition in file operators.h.