Tensor5View Class Reference

The Tensor5View class. More...

#include <matpackV.h>

Inheritance diagram for Tensor5View:

Inheritance graph
[legend]
Collaboration diagram for Tensor5View:

Collaboration graph
[legend]

List of all members.

Public Member Functions

ConstTensor5View operator() (const Range &s, const Range &b, const Range &p, const Range &r, const Range &c) const
 Const index operator for subrange.
ConstTensor4View operator() (const Range &s, const Range &b, const Range &p, const Range &r, Index c) const
 Const index operator returning an object of type ConstTensor4View.
ConstTensor4View operator() (const Range &s, const Range &b, const Range &p, Index r, const Range &c) const
 Const index operator returning an object of type ConstTensor4View.
ConstTensor4View operator() (const Range &s, const Range &b, Index p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstTensor4View.
ConstTensor4View operator() (const Range &s, Index b, const Range &p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstTensor4View.
ConstTensor4View operator() (Index s, const Range &b, const Range &p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstTensor4View.
ConstTensor3View operator() (const Range &s, const Range &b, const Range &p, Index r, Index c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (const Range &s, const Range &b, Index p, const Range &r, Index c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (const Range &s, const Range &b, Index p, Index r, const Range &c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (const Range &s, Index b, const Range &p, Index r, const Range &c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (const Range &s, Index b, const Range &p, const Range &r, Index c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (const Range &s, Index b, Index p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (Index s, const Range &b, Index p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (Index s, const Range &b, const Range &p, Index r, const Range &c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (Index s, const Range &b, const Range &p, const Range &r, Index c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (Index s, Index b, const Range &p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstTensor3View.
ConstMatrixView operator() (const Range &s, const Range &b, Index p, Index r, Index c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (const Range &s, Index b, const Range &p, Index r, Index c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (const Range &s, Index b, Index p, const Range &r, Index c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (const Range &s, Index b, Index p, Index r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (Index s, const Range &b, Index p, Index r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (Index s, const Range &b, Index p, const Range &r, Index c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (Index s, const Range &b, const Range &p, Index r, Index c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (Index s, Index b, const Range &p, const Range &r, Index c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (Index s, Index b, const Range &p, Index r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (Index s, Index b, Index p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView.
ConstVectorView operator() (const Range &s, Index b, Index p, Index r, Index c) const
 Const index operator returning an object of type ConstVectorView.
ConstVectorView operator() (Index s, const Range &b, Index p, Index r, Index c) const
 Const index operator returning an object of type ConstVectorView.
ConstVectorView operator() (Index s, Index b, const Range &p, Index r, Index c) const
 Const index operator returning an object of type ConstVectorView.
ConstVectorView operator() (Index s, Index b, Index p, const Range &r, Index c) const
 Const index operator returning an object of type ConstVectorView.
ConstVectorView operator() (Index s, Index b, Index p, Index r, const Range &c) const
 Const index operator returning an object of type ConstVectorView.
Numeric operator() (Index s, Index b, Index p, Index r, Index c) const
 Plain const index operator.
Tensor5View operator() (const Range &s, const Range &b, const Range &p, const Range &r, const Range &c)
 Index operator for subrange.
Tensor4View operator() (const Range &s, const Range &b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type Tensor4View.
Tensor4View operator() (const Range &s, const Range &b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type Tensor4View.
Tensor4View operator() (const Range &s, const Range &b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor4View.
Tensor4View operator() (const Range &s, Index b, const Range &p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor4View.
Tensor4View operator() (Index s, const Range &b, const Range &p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor4View.
Tensor3View operator() (const Range &s, const Range &b, const Range &p, Index r, Index c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (const Range &s, const Range &b, Index p, const Range &r, Index c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (const Range &s, const Range &b, Index p, Index r, const Range &c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (const Range &s, Index b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (const Range &s, Index b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (const Range &s, Index b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (Index s, const Range &b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (Index s, const Range &b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (Index s, const Range &b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (Index s, Index b, const Range &p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor3View.
MatrixView operator() (const Range &s, const Range &b, Index p, Index r, Index c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (const Range &s, Index b, const Range &p, Index r, Index c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (const Range &s, Index b, Index p, const Range &r, Index c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (const Range &s, Index b, Index p, Index r, const Range &c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (Index s, const Range &b, Index p, Index r, const Range &c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (Index s, const Range &b, Index p, const Range &r, Index c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (Index s, const Range &b, const Range &p, Index r, Index c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (Index s, Index b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (Index s, Index b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (Index s, Index b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type MatrixView.
VectorView operator() (const Range &s, Index b, Index p, Index r, Index c)
 Index operator returning an object of type VectorView.
VectorView operator() (Index s, const Range &b, Index p, Index r, Index c)
 Index operator returning an object of type VectorView.
VectorView operator() (Index s, Index b, const Range &p, Index r, Index c)
 Index operator returning an object of type VectorView.
VectorView operator() (Index s, Index b, Index p, const Range &r, Index c)
 Index operator returning an object of type VectorView.
VectorView operator() (Index s, Index b, Index p, Index r, const Range &c)
 Const index operator returning an object of type ConstVectorView.
Numericoperator() (Index s, Index b, Index p, Index r, Index c)
 Plain const index operator.
ConstIterator5D begin () const
 Return const iterator to first shelf.
ConstIterator5D end () const
 Return const iterator behind last shelf.
Iterator5D begin ()
 Return iterator to first shelf.
Iterator5D end ()
 Return iterator behind last shelf.
Tensor5Viewoperator= (const ConstTensor5View &v)
 Assignment operator.
Tensor5Viewoperator= (const Tensor5View &v)
 Assignment from Tensor5View to Tensor5View.
Tensor5Viewoperator= (const Tensor5 &v)
 Assignment from a Tensor5.
Tensor5Viewoperator= (Numeric x)
 Assigning a scalar to a Tensor5View will set all elements to this value.
Tensor5Viewoperator*= (Numeric x)
 Multiplication by scalar.
Tensor5Viewoperator/= (Numeric x)
 Division by scalar.
Tensor5Viewoperator+= (Numeric x)
 Addition of scalar.
Tensor5Viewoperator-= (Numeric x)
 Subtraction of scalar.
Tensor5Viewoperator*= (const ConstTensor5View &x)
 Element-vise multiplication by another Tensor5.
Tensor5Viewoperator/= (const ConstTensor5View &x)
 Element-vise division by another Tensor5.
Tensor5Viewoperator+= (const ConstTensor5View &x)
 Element-vise addition of another Tensor5.
Tensor5Viewoperator-= (const ConstTensor5View &x)
 Element-vise subtraction of another Tensor5.
virtual ~Tensor5View ()
 Destructor.
 Tensor5View (const Tensor4View &a)
 Special constructor to make a Tensor5 view of a Tensor4.

Protected Member Functions

 Tensor5View ()
 Default constructor.
 Tensor5View (Numeric *data, const Range &s, const Range &b, const Range &p, const Range &r, const Range &c)
 Explicit constructor.
 Tensor5View (Numeric *data, const Range &ps, const Range &pb, const Range &pp, const Range &pr, const Range &pc, const Range &ns, const Range &nb, const Range &np, const Range &nr, const Range &nc)
 Recursive constructor.

Friends

class Iterator6D
class Tensor6View
class Tensor7View


Detailed Description

The Tensor5View class.

This contains the main implementation of a Tensor5. It defines the concepts of Tensor5View. Plus additionally the recursive subrange operator, which makes it possible to create a Tensor5View from a subrange of a Tensor5View.

The class Tensor5 is just a special case of a Tensor5View which also allocates storage.

Definition at line 278 of file matpackV.h.


Constructor & Destructor Documentation

virtual Tensor5View::~Tensor5View (  )  [inline, virtual]

Destructor.

Definition at line 408 of file matpackV.h.

Tensor5View::Tensor5View ( const Tensor4View a  ) 

Special constructor to make a Tensor5 view of a Tensor4.

Definition at line 2171 of file matpackV.cc.

Tensor5View::Tensor5View (  )  [protected]

Default constructor.

This is necessary, so that we can have a default constructor for the derived class Tensor5.

Definition at line 2188 of file matpackV.cc.

Referenced by operator()().

Tensor5View::Tensor5View ( Numeric data,
const Range sr,
const Range br,
const Range pr,
const Range rr,
const Range cr 
) [protected]

Explicit constructor.

This one is used by Tensor5 to initialize its own Tensor5View part. The row range rr must have a stride to account for the length of one row.

Definition at line 2197 of file matpackV.cc.

Tensor5View::Tensor5View ( Numeric data,
const Range ps,
const Range pb,
const Range pp,
const Range pr,
const Range pc,
const Range ns,
const Range nb,
const Range np,
const Range nr,
const Range nc 
) [protected]

Recursive constructor.

This is used to construct SubMatrices from SubMatrices. That means that the new ranges have to be interpreted relative to the original ranges.

The new ranges may contain -1 for the extent which acts as a joker. However, the used Range constructor converts this to an explicit range, consistent with the original Range.

Parameters:
*data The actual data.
ps Previous range.
pb Previous range.
pp Previous range.
pr Previous range.
pc Previous range.
ns New Range.
nb New Range.
np New Range.
nr New Range.
nc New Range.

Definition at line 2228 of file matpackV.cc.


Member Function Documentation

ConstTensor5View Tensor5View::operator() ( const Range s,
const Range b,
const Range p,
const Range r,
const Range c 
) const

Const index operator for subrange.

We have to also account for the case, that *this is already a subrange of a Tensor5. This allows correct recursive behavior. Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 873 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor4View Tensor5View::operator() ( const Range s,
const Range b,
const Range p,
const Range r,
Index  c 
) const

Const index operator returning an object of type ConstTensor4View.

(Reducing the dimension by one.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 886 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor4View Tensor5View::operator() ( const Range s,
const Range b,
const Range p,
Index  r,
const Range c 
) const

Const index operator returning an object of type ConstTensor4View.

(Reducing the dimension by one.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 899 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor4View Tensor5View::operator() ( const Range s,
const Range b,
Index  p,
const Range r,
const Range c 
) const

Const index operator returning an object of type ConstTensor4View.

(Reducing the dimension by one.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 912 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor4View Tensor5View::operator() ( const Range s,
Index  b,
const Range p,
const Range r,
const Range c 
) const

Const index operator returning an object of type ConstTensor4View.

(Reducing the dimension by one.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 925 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor4View Tensor5View::operator() ( Index  s,
const Range b,
const Range p,
const Range r,
const Range c 
) const

Const index operator returning an object of type ConstTensor4View.

(Reducing the dimension by one.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 938 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( const Range s,
const Range b,
const Range p,
Index  r,
Index  c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 951 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( const Range s,
const Range b,
Index  p,
const Range r,
Index  c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 964 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( const Range s,
const Range b,
Index  p,
Index  r,
const Range c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 977 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( const Range s,
Index  b,
const Range p,
Index  r,
const Range c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 990 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( const Range s,
Index  b,
const Range p,
const Range r,
Index  c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1003 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( const Range s,
Index  b,
Index  p,
const Range r,
const Range c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1016 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( Index  s,
const Range b,
Index  p,
const Range r,
const Range c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1029 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( Index  s,
const Range b,
const Range p,
Index  r,
const Range c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1042 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( Index  s,
const Range b,
const Range p,
const Range r,
Index  c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1055 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstTensor3View Tensor5View::operator() ( Index  s,
Index  b,
const Range p,
const Range r,
const Range c 
) const

Const index operator returning an object of type ConstTensor3View.

(Reducing the dimension by two.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1068 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( const Range s,
const Range b,
Index  p,
Index  r,
Index  c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1081 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( const Range s,
Index  b,
const Range p,
Index  r,
Index  c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1094 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( const Range s,
Index  b,
Index  p,
const Range r,
Index  c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1107 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( const Range s,
Index  b,
Index  p,
Index  r,
const Range c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1120 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( Index  s,
const Range b,
Index  p,
Index  r,
const Range c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1133 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( Index  s,
const Range b,
Index  p,
const Range r,
Index  c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1146 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( Index  s,
const Range b,
const Range p,
Index  r,
Index  c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1159 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( Index  s,
Index  b,
const Range p,
const Range r,
Index  c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1172 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( Index  s,
Index  b,
const Range p,
Index  r,
const Range c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1185 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstMatrixView Tensor5View::operator() ( Index  s,
Index  b,
Index  p,
const Range r,
const Range c 
) const

Const index operator returning an object of type ConstMatrixView.

(Reducing the dimension by three.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1198 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstVectorView Tensor5View::operator() ( const Range s,
Index  b,
Index  p,
Index  r,
Index  c 
) const

Const index operator returning an object of type ConstVectorView.

(Reducing the dimension by four.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1211 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstVectorView Tensor5View::operator() ( Index  s,
const Range b,
Index  p,
Index  r,
Index  c 
) const

Const index operator returning an object of type ConstVectorView.

(Reducing the dimension by four.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1224 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstVectorView Tensor5View::operator() ( Index  s,
Index  b,
const Range p,
Index  r,
Index  c 
) const

Const index operator returning an object of type ConstVectorView.

(Reducing the dimension by four.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1237 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstVectorView Tensor5View::operator() ( Index  s,
Index  b,
Index  p,
const Range r,
Index  c 
) const

Const index operator returning an object of type ConstVectorView.

(Reducing the dimension by four.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1250 of file matpackV.cc.

References ConstTensor5View::operator()().

ConstVectorView Tensor5View::operator() ( Index  s,
Index  b,
Index  p,
Index  r,
const Range c 
) const

Const index operator returning an object of type ConstVectorView.

(Reducing the dimension by four.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1263 of file matpackV.cc.

References ConstTensor5View::operator()().

Numeric Tensor5View::operator() ( Index  s,
Index  b,
Index  p,
Index  r,
Index  c 
) const [inline]

Plain const index operator.

Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 320 of file matpackV.h.

References ConstTensor5View::operator()().

Tensor5View Tensor5View::operator() ( const Range s,
const Range b,
const Range p,
const Range r,
const Range c 
)

Index operator for subrange.

We have to also account for the case, that *this is already a subrange of a Tensor5. This allows correct recursive behavior.

Definition at line 1275 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, and Tensor5View().

Tensor4View Tensor5View::operator() ( const Range s,
const Range b,
const Range p,
const Range r,
Index  c 
)

Index operator returning an object of type Tensor4View.

(Reducing the dimension by one.)

Definition at line 1288 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor4View Tensor5View::operator() ( const Range s,
const Range b,
const Range p,
Index  r,
const Range c 
)

Index operator returning an object of type Tensor4View.

(Reducing the dimension by one.)

Definition at line 1306 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor4View Tensor5View::operator() ( const Range s,
const Range b,
Index  p,
const Range r,
const Range c 
)

Index operator returning an object of type Tensor4View.

(Reducing the dimension by one.)

Definition at line 1324 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor4View Tensor5View::operator() ( const Range s,
Index  b,
const Range p,
const Range r,
const Range c 
)

Index operator returning an object of type Tensor4View.

(Reducing the dimension by one.)

Definition at line 1342 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor4View Tensor5View::operator() ( Index  s,
const Range b,
const Range p,
const Range r,
const Range c 
)

Index operator returning an object of type Tensor4View.

(Reducing the dimension by one.)

Definition at line 1360 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( const Range s,
const Range b,
const Range p,
Index  r,
Index  c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1378 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( const Range s,
const Range b,
Index  p,
const Range r,
Index  c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1399 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( const Range s,
const Range b,
Index  p,
Index  r,
const Range c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1420 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( const Range s,
Index  b,
const Range p,
Index  r,
const Range c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1441 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( const Range s,
Index  b,
const Range p,
const Range r,
Index  c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1462 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( const Range s,
Index  b,
Index  p,
const Range r,
const Range c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1483 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( Index  s,
const Range b,
Index  p,
const Range r,
const Range c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1504 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( Index  s,
const Range b,
const Range p,
Index  r,
const Range c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1525 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( Index  s,
const Range b,
const Range p,
const Range r,
Index  c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1546 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Tensor3View Tensor5View::operator() ( Index  s,
Index  b,
const Range p,
const Range r,
const Range c 
)

Index operator returning an object of type Tensor3View.

(Reducing the dimension by two.)

Definition at line 1567 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( const Range s,
const Range b,
Index  p,
Index  r,
Index  c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1588 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( const Range s,
Index  b,
const Range p,
Index  r,
Index  c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1612 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( const Range s,
Index  b,
Index  p,
const Range r,
Index  c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1636 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( const Range s,
Index  b,
Index  p,
Index  r,
const Range c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1660 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( Index  s,
const Range b,
Index  p,
Index  r,
const Range c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1684 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( Index  s,
const Range b,
Index  p,
const Range r,
Index  c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1708 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( Index  s,
const Range b,
const Range p,
Index  r,
Index  c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1732 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( Index  s,
Index  b,
const Range p,
const Range r,
Index  c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1756 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( Index  s,
Index  b,
const Range p,
Index  r,
const Range c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1780 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

MatrixView Tensor5View::operator() ( Index  s,
Index  b,
Index  p,
const Range r,
const Range c 
)

Index operator returning an object of type MatrixView.

(Reducing the dimension by three.)

Definition at line 1804 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

VectorView Tensor5View::operator() ( const Range s,
Index  b,
Index  p,
Index  r,
Index  c 
)

Index operator returning an object of type VectorView.

(Reducing the dimension by four.)

Definition at line 1828 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

VectorView Tensor5View::operator() ( Index  s,
const Range b,
Index  p,
Index  r,
Index  c 
)

Index operator returning an object of type VectorView.

(Reducing the dimension by four.)

Definition at line 1855 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

VectorView Tensor5View::operator() ( Index  s,
Index  b,
const Range p,
Index  r,
Index  c 
)

Index operator returning an object of type VectorView.

(Reducing the dimension by four.)

Definition at line 1882 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

VectorView Tensor5View::operator() ( Index  s,
Index  b,
Index  p,
const Range r,
Index  c 
)

Index operator returning an object of type VectorView.

(Reducing the dimension by four.)

Definition at line 1909 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

VectorView Tensor5View::operator() ( Index  s,
Index  b,
Index  p,
Index  r,
const Range c 
)

Const index operator returning an object of type ConstVectorView.

(Reducing the dimension by four.)

Definition at line 1936 of file matpackV.cc.

References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.

Numeric& Tensor5View::operator() ( Index  s,
Index  b,
Index  p,
Index  r,
Index  c 
) [inline]

ConstIterator5D Tensor5View::begin (  )  const

Return const iterator to first shelf.

Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor5View.

Definition at line 1964 of file matpackV.cc.

References ConstTensor5View::begin().

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), Tensor5::operator=(), operator=(), Tensor5::Tensor5(), and transform().

ConstIterator5D Tensor5View::end (  )  const

Return const iterator behind last shelf.

Reimplemented from ConstTensor5View.

Definition at line 1970 of file matpackV.cc.

References ConstTensor5View::end().

Referenced by operator*=(), operator+=(), operator-=(), operator/=(), Tensor5::operator=(), operator=(), and Tensor5::Tensor5().

Iterator5D Tensor5View::begin (  ) 

Iterator5D Tensor5View::end (  ) 

Tensor5View & Tensor5View::operator= ( const ConstTensor5View m  ) 

Assignment operator.

This copies the data from another Tensor5View to this Tensor5View. Dimensions must agree! Resizing would destroy the selection that we might have done in this Tensor5View by setting its range.

Definition at line 1996 of file matpackV.cc.

References begin(), ConstTensor5View::begin(), copy(), ConstTensor5View::end(), ConstTensor5View::mbr, ConstTensor5View::mcr, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, and ConstTensor5View::msr.

Tensor5View & Tensor5View::operator= ( const Tensor5View m  ) 

Assignment from Tensor5View to Tensor5View.

This is a tricky one. The problem is that since Tensor5View is derived from ConstTensor5View, a default = operator is generated by the compiler, which does not do what we want. So we need this one to override the default.

Definition at line 2014 of file matpackV.cc.

References begin(), copy(), end(), ConstTensor5View::mbr, ConstTensor5View::mcr, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, and ConstTensor5View::msr.

Tensor5View & Tensor5View::operator= ( const Tensor5 m  ) 

Assignment from a Tensor5.

This must exist to overide the automatically generated assignment operators, which don't copy the contents!

Reimplemented in Tensor5.

Definition at line 2030 of file matpackV.cc.

References begin(), copy(), end(), ConstTensor5View::mbr, ConstTensor5View::mcr, Range::mextent, ConstTensor5View::mpr, ConstTensor5View::mrr, and ConstTensor5View::msr.

Tensor5View & Tensor5View::operator= ( Numeric  x  ) 

Assigning a scalar to a Tensor5View will set all elements to this value.

Reimplemented in Tensor5.

Definition at line 2045 of file matpackV.cc.

References begin(), copy(), and end().

Tensor5View & Tensor5View::operator*= ( Numeric  x  ) 

Multiplication by scalar.

Definition at line 2055 of file matpackV.cc.

References begin(), and end().

Tensor5View & Tensor5View::operator/= ( Numeric  x  ) 

Division by scalar.

Definition at line 2066 of file matpackV.cc.

References begin(), and end().

Tensor5View & Tensor5View::operator+= ( Numeric  x  ) 

Addition of scalar.

Definition at line 2077 of file matpackV.cc.

References begin(), and end().

Tensor5View & Tensor5View::operator-= ( Numeric  x  ) 

Subtraction of scalar.

Definition at line 2088 of file matpackV.cc.

References begin(), and end().

Tensor5View & Tensor5View::operator*= ( const ConstTensor5View x  ) 

Tensor5View & Tensor5View::operator/= ( const ConstTensor5View x  ) 

Tensor5View & Tensor5View::operator+= ( const ConstTensor5View x  ) 

Tensor5View & Tensor5View::operator-= ( const ConstTensor5View x  ) 


Friends And Related Function Documentation

friend class Iterator6D [friend]

Definition at line 408 of file matpackV.h.

friend class Tensor6View [friend]

Definition at line 415 of file matpackV.h.

friend class Tensor7View [friend]

Definition at line 416 of file matpackV.h.


The documentation for this class was generated from the following files:

Generated on Mon Mar 23 14:07:04 2009 for ARTS by  doxygen 1.5.6