QDP++
Multi-dimensional arrays

Classes

class  QDP::multi1d< T >
 Container for a multi-dimensional 1D array. More...
class  QDP::multi2d< T >
 Container for a multi-dimensional 2D array. More...
class  QDP::multi3d< T >
 Container for a multi-dimensional 3D array. More...
class  QDP::multi4d< T >
 Container for a multi-dimensional 4D array. More...
class  QDP::multi5d< T >
 Container for a multi-dimensional 5D array. More...
class  QDP::multiNd< T >
 Container for a generic N dimensional array. More...

Functions

template<typename T>
multi1d< T > QDP::concat (const multi1d< T > &l, const multi1d< T > &r)
 Concatenate two Array's.
template<typename T>
bool QDP::operator== (const multi1d< T > &n1, const multi1d< T > &n2)
 Check if two Array's are the same.
template<typename T>
bool QDP::operator!= (const multi1d< T > &n1, const multi1d< T > &n2)
 Check if two Array's are no the same.
template<typename T>
bool QDP::operator< (const multi1d< T > &a, const multi1d< T > &b)
 a < b
template<typename T>
bool QDP::operator> (const multi1d< T > &a, const multi1d< T > &b)
 a > b
template<typename T>
bool QDP::operator<= (const multi1d< T > &a, const multi1d< T > &b)
 a <= b
template<typename T>
bool QDP::operator>= (const multi1d< T > &a, const multi1d< T > &b)
 a >= b
template<typename T>
multi1d< T > QDP::operator+ (const multi1d< T > &a, const multi1d< T > &b)
 add Arrays
template<typename T>
multi1d< T > QDP::operator- (const multi1d< T > &a, const multi1d< T > &b)
 subtract Arrays
template<typename T>
multi1d< T > QDP::operator* (const multi1d< T > &a, const multi1d< T > &b)
 multiply Arrays
template<typename T>
multi1d< T > QDP::operator/ (const multi1d< T > &a, const multi1d< T > &b)
 divide Arrays
template<typename T>
multi1d< T > QDP::operator+ (const T &s, const multi1d< T > &a)
 scalar + Array
template<typename T>
multi1d< T > QDP::operator+ (const multi1d< T > &a, const T &s)
 Array + scalar.
template<typename T>
multi1d< T > QDP::operator- (const T &s, const multi1d< T > &a)
 scalar - Array
template<typename T>
multi1d< T > QDP::operator- (const multi1d< T > &a, const T &s)
 Array - scalar.
template<typename T>
multi1d< T > QDP::operator* (const T &s, const multi1d< T > &a)
 scalar * Array
template<typename T>
multi1d< T > QDP::operator* (const multi1d< T > &a, const T &s)
 Array * scalar.
template<typename T>
multi1d< T > QDP::operator/ (const T &s, const multi1d< T > &a)
 scalar / Array
template<typename T>
multi1d< T > QDP::operator/ (const multi1d< T > &a, const T &s)
 Array / scalar.
template<typename T>
multi1d< T > QDP::sqrt (const multi1d< T > &a)
 sqrt
template<typename T>
multi1d< T > QDP::log (const multi1d< T > &a)
 log
template<typename T>
multi1d< T > QDP::sin (const multi1d< T > &a)
 sin
template<typename T>
multi1d< T > QDP::cos (const multi1d< T > &a)
 cos
template<typename T>
multi1d< T > QDP::tan (const multi1d< T > &a)
 tan
template<typename T>
multi1d< T > QDP::asin (const multi1d< T > &a)
 asin
template<typename T>
multi1d< T > QDP::acos (const multi1d< T > &a)
 acos
template<typename T>
multi1d< T > QDP::atan (const multi1d< T > &a)
 atan
template<typename T>
QDP::norm2 (const multi1d< T > &a)
 norm2 of an array

Detailed Description

Container classes that provide 1D, 2D, 3D and 4D multidimensional array semantics.

Function Documentation

◆ acos()

template<typename T>
multi1d< T > QDP::acos ( const multi1d< T > & a)
inline

acos

Definition at line 593 of file qdp_multi.h.

References acos(), and QDP::multi1d< T >::size().

◆ asin()

template<typename T>
multi1d< T > QDP::asin ( const multi1d< T > & a)
inline

asin

Definition at line 577 of file qdp_multi.h.

References asin(), and QDP::multi1d< T >::size().

◆ atan()

template<typename T>
multi1d< T > QDP::atan ( const multi1d< T > & a)
inline

atan

Definition at line 608 of file qdp_multi.h.

References atan(), and QDP::multi1d< T >::size().

◆ concat()

template<typename T>
multi1d< T > QDP::concat ( const multi1d< T > & l,
const multi1d< T > & r )
inline

Concatenate two Array's.

Definition at line 292 of file qdp_multi.h.

References QDP::multi1d< T >::size().

◆ cos()

template<typename T>
multi1d< T > QDP::cos ( const multi1d< T > & a)
inline

cos

Definition at line 547 of file qdp_multi.h.

References cos(), and QDP::multi1d< T >::size().

◆ log()

template<typename T>
multi1d< T > QDP::log ( const multi1d< T > & a)
inline

log

Definition at line 516 of file qdp_multi.h.

References log(), and QDP::multi1d< T >::size().

◆ norm2()

template<typename T>
T QDP::norm2 ( const multi1d< T > & a)
inline

norm2 of an array

Definition at line 625 of file qdp_multi.h.

References QDP::multi1d< T >::size().

◆ operator!=()

template<typename T>
bool QDP::operator!= ( const multi1d< T > & n1,
const multi1d< T > & n2 )
inline

Check if two Array's are no the same.

Definition at line 321 of file qdp_multi.h.

◆ operator*() [1/3]

template<typename T>
multi1d< T > QDP::operator* ( const multi1d< T > & a,
const multi1d< T > & b )
inline

multiply Arrays

Definition at line 401 of file qdp_multi.h.

◆ operator*() [2/3]

template<typename T>
multi1d< T > QDP::operator* ( const multi1d< T > & a,
const T & s )
inline

Array * scalar.

Definition at line 470 of file qdp_multi.h.

◆ operator*() [3/3]

template<typename T>
multi1d< T > QDP::operator* ( const T & s,
const multi1d< T > & a )
inline

scalar * Array

Definition at line 460 of file qdp_multi.h.

◆ operator+() [1/3]

template<typename T>
multi1d< T > QDP::operator+ ( const multi1d< T > & a,
const multi1d< T > & b )
inline

add Arrays

Definition at line 381 of file qdp_multi.h.

◆ operator+() [2/3]

template<typename T>
multi1d< T > QDP::operator+ ( const multi1d< T > & a,
const T & s )
inline

Array + scalar.

Definition at line 431 of file qdp_multi.h.

◆ operator+() [3/3]

template<typename T>
multi1d< T > QDP::operator+ ( const T & s,
const multi1d< T > & a )
inline

scalar + Array

Definition at line 421 of file qdp_multi.h.

◆ operator-() [1/3]

template<typename T>
multi1d< T > QDP::operator- ( const multi1d< T > & a,
const multi1d< T > & b )
inline

subtract Arrays

Definition at line 391 of file qdp_multi.h.

◆ operator-() [2/3]

template<typename T>
multi1d< T > QDP::operator- ( const multi1d< T > & a,
const T & s )
inline

Array - scalar.

Definition at line 450 of file qdp_multi.h.

◆ operator-() [3/3]

template<typename T>
multi1d< T > QDP::operator- ( const T & s,
const multi1d< T > & a )
inline

scalar - Array

Definition at line 441 of file qdp_multi.h.

◆ operator/() [1/3]

template<typename T>
multi1d< T > QDP::operator/ ( const multi1d< T > & a,
const multi1d< T > & b )
inline

divide Arrays

Definition at line 411 of file qdp_multi.h.

◆ operator/() [2/3]

template<typename T>
multi1d< T > QDP::operator/ ( const multi1d< T > & a,
const T & s )
inline

Array / scalar.

Definition at line 491 of file qdp_multi.h.

◆ operator/() [3/3]

template<typename T>
multi1d< T > QDP::operator/ ( const T & s,
const multi1d< T > & a )
inline

scalar / Array

Definition at line 480 of file qdp_multi.h.

References QDP::multi1d< T >::size().

◆ operator<()

template<typename T>
bool QDP::operator< ( const multi1d< T > & a,
const multi1d< T > & b )
inline

a < b

This definition follows that of string comparison

Definition at line 329 of file qdp_multi.h.

References QDP::multi1d< T >::size().

◆ operator<=()

template<typename T>
bool QDP::operator<= ( const multi1d< T > & a,
const multi1d< T > & b )
inline

a <= b

This definition follows that of string comparison

Definition at line 361 of file qdp_multi.h.

◆ operator==()

template<typename T>
bool QDP::operator== ( const multi1d< T > & n1,
const multi1d< T > & n2 )
inline

Check if two Array's are the same.

Definition at line 307 of file qdp_multi.h.

References QDP::multi1d< T >::size().

◆ operator>()

template<typename T>
bool QDP::operator> ( const multi1d< T > & a,
const multi1d< T > & b )
inline

a > b

This definition follows that of string comparison

Definition at line 345 of file qdp_multi.h.

References QDP::multi1d< T >::size().

◆ operator>=()

template<typename T>
bool QDP::operator>= ( const multi1d< T > & a,
const multi1d< T > & b )
inline

a >= b

This definition follows that of string comparison

Definition at line 369 of file qdp_multi.h.

◆ sin()

template<typename T>
multi1d< T > QDP::sin ( const multi1d< T > & a)
inline

sin

Definition at line 531 of file qdp_multi.h.

References sin(), and QDP::multi1d< T >::size().

◆ sqrt()

template<typename T>
multi1d< T > QDP::sqrt ( const multi1d< T > & a)
inline

sqrt

Definition at line 501 of file qdp_multi.h.

References QDP::multi1d< T >::size(), and sqrt().

◆ tan()

template<typename T>
multi1d< T > QDP::tan ( const multi1d< T > & a)
inline

tan

Definition at line 562 of file qdp_multi.h.

References QDP::multi1d< T >::size(), and tan().