LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Classes | Namespaces | Functions
Vector.h File Reference

Definition for Vector. More...

#include <boost/type_traits/is_arithmetic.hpp>
#include <boost/iterator/reverse_iterator.hpp>
#include <boost/mpl/int.hpp>
#include <boost/utility/enable_if.hpp>
#include <boost/preprocessor/repetition/repeat.hpp>
#include <boost/preprocessor/repetition/repeat_from_to.hpp>
#include <boost/preprocessor/repetition/enum.hpp>
#include <iostream>
#include "ndarray_fwd.h"
#include "ndarray/types.h"

Go to the source code of this file.

Classes

struct  ndarray::detail::DefaultValue< T, isArithmetic >
 
struct  ndarray::detail::DefaultValue< T, true >
 
class  ndarray::Vector< T, N >
 A fixed-size 1D array class. More...
 
struct  ndarray::Vector< T, 0 >
 PArtial specialization for zero-size vectors to avoid compiler errors on some platforms. More...
 

Namespaces

 ndarray
 
 ndarray::detail
 

Functions

template<typename T , int N, int M>
Vector< T, N+M > ndarray::concatenate (Vector< T, N > const &a, Vector< T, M > const &b)
 Concatenate two Vectors into a single long Vector. More...
 
template<typename T , int N>
Vector< T, N+1 > ndarray::concatenate (Vector< T, N > const &a, T const &b)
 Return a new Vector with the given scalar appended to the original. More...
 
template<typename T , int N>
Vector< T, N+1 > ndarray::concatenate (T const &a, Vector< T, N > const &b)
 Return a new Vector with the given scalar prepended to the original. More...
 
template<typename T , int N>
Vector< T, N > ndarray::makeVector (T v1, T v2,..., T vN)
 Variadic constructor for Vector. More...
 
template<typename T , int N>
Vector< T, N > ndarray::operator~ (Vector< T, N > const &vector)
 Unary bitwise NOT for Vector. More...
 
template<typename T , int N>
Vector< T, N > ndarray::operator! (Vector< T, N > const &vector)
 Unary negation for Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator+ (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector + Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator+ (Vector< T, N > const &a, U b)
 Operator overload for Vector + Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator+ (U a, Vector< T, N > const &b)
 Operator overload for Scalar + Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator- (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector - Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator- (Vector< T, N > const &a, U b)
 Operator overload for Vector - Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator- (U a, Vector< T, N > const &b)
 Operator overload for Scalar - Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator* (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector * Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator* (Vector< T, N > const &a, U b)
 Operator overload for Vector * Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator* (U a, Vector< T, N > const &b)
 Operator overload for Scalar * Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator/ (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector / Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator/ (Vector< T, N > const &a, U b)
 Operator overload for Vector / Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator/ (U a, Vector< T, N > const &b)
 Operator overload for Scalar / Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator% (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector % Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator% (Vector< T, N > const &a, U b)
 Operator overload for Vector % Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator% (U a, Vector< T, N > const &b)
 Operator overload for Scalar % Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator& (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector & Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator& (Vector< T, N > const &a, U b)
 Operator overload for Vector & Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator& (U a, Vector< T, N > const &b)
 Operator overload for Scalar & Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator^ (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector ^ Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator^ (Vector< T, N > const &a, U b)
 Operator overload for Vector ^ Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator^ (U a, Vector< T, N > const &b)
 Operator overload for Scalar ^ Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator| (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector | Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator| (Vector< T, N > const &a, U b)
 Operator overload for Vector | Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator| (U a, Vector< T, N > const &b)
 Operator overload for Scalar | Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator<< (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector << Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator<< (Vector< T, N > const &a, U b)
 Operator overload for Vector << Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator<< (U a, Vector< T, N > const &b)
 Operator overload for Scalar << Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator>> (Vector< T, N > const &a, Vector< U, N > const &b)
 Operator overload for Vector >> Vector. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator>> (Vector< T, N > const &a, U b)
 Operator overload for Vector >> Scalar. More...
 
template<typename T , typename U , int N>
Vector< typename Promote< T, U >
::Type, N > 
ndarray::operator>> (U a, Vector< T, N > const &b)
 Operator overload for Scalar >> Vector. More...
 

Detailed Description

Definition for Vector.

Definition in file Vector.h.