ARTS  2.4.0(git:4fb77825)
Tensor5View Class Reference

The Tensor5View class. More...

#include <matpackV.h>

Inheritance diagram for Tensor5View:
ConstTensor5View Tensor5

Public Member Functions

constexpr Tensor5View (const Tensor5View &)=default
 
Tensor5View operator() (const Range &s, const Range &b, const Range &p, const Range &r, const Range &c)
 Index operator for subrange. More...
 
Tensor4View operator() (const Range &s, const Range &b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type Tensor4View. More...
 
Tensor4View operator() (const Range &s, const Range &b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type Tensor4View. More...
 
Tensor4View operator() (const Range &s, const Range &b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor4View. More...
 
Tensor4View operator() (const Range &s, Index b, const Range &p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor4View. More...
 
Tensor4View operator() (Index s, const Range &b, const Range &p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor4View. More...
 
Tensor3View operator() (const Range &s, const Range &b, const Range &p, Index r, Index c)
 Index operator returning an object of type Tensor3View. More...
 
Tensor3View operator() (const Range &s, const Range &b, Index p, const Range &r, Index c)
 Index operator returning an object of type Tensor3View. More...
 
Tensor3View operator() (const Range &s, const Range &b, Index p, Index r, const Range &c)
 Index operator returning an object of type Tensor3View. More...
 
Tensor3View operator() (const Range &s, Index b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type Tensor3View. More...
 
Tensor3View operator() (const Range &s, Index b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type Tensor3View. More...
 
Tensor3View operator() (const Range &s, Index b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor3View. More...
 
Tensor3View operator() (Index s, const Range &b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor3View. More...
 
Tensor3View operator() (Index s, const Range &b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type Tensor3View. More...
 
Tensor3View operator() (Index s, const Range &b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type Tensor3View. More...
 
Tensor3View operator() (Index s, Index b, const Range &p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor3View. More...
 
MatrixView operator() (const Range &s, const Range &b, Index p, Index r, Index c)
 Index operator returning an object of type MatrixView. More...
 
MatrixView operator() (const Range &s, Index b, const Range &p, Index r, Index c)
 Index operator returning an object of type MatrixView. More...
 
MatrixView operator() (const Range &s, Index b, Index p, const Range &r, Index c)
 Index operator returning an object of type MatrixView. More...
 
MatrixView operator() (const Range &s, Index b, Index p, Index r, const Range &c)
 Index operator returning an object of type MatrixView. More...
 
MatrixView operator() (Index s, const Range &b, Index p, Index r, const Range &c)
 Index operator returning an object of type MatrixView. More...
 
MatrixView operator() (Index s, const Range &b, Index p, const Range &r, Index c)
 Index operator returning an object of type MatrixView. More...
 
MatrixView operator() (Index s, const Range &b, const Range &p, Index r, Index c)
 Index operator returning an object of type MatrixView. More...
 
MatrixView operator() (Index s, Index b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type MatrixView. More...
 
MatrixView operator() (Index s, Index b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type MatrixView. More...
 
MatrixView operator() (Index s, Index b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type MatrixView. More...
 
VectorView operator() (const Range &s, Index b, Index p, Index r, Index c)
 Index operator returning an object of type VectorView. More...
 
VectorView operator() (Index s, const Range &b, Index p, Index r, Index c)
 Index operator returning an object of type VectorView. More...
 
VectorView operator() (Index s, Index b, const Range &p, Index r, Index c)
 Index operator returning an object of type VectorView. More...
 
VectorView operator() (Index s, Index b, Index p, const Range &r, Index c)
 Index operator returning an object of type VectorView. More...
 
VectorView operator() (Index s, Index b, Index p, Index r, const Range &c)
 Const index operator returning an object of type ConstVectorView. More...
 
Numericoperator() (Index s, Index b, Index p, Index r, Index c)
 Plain const index operator. More...
 
Numericget (Index s, Index b, Index p, Index r, Index c)
 Get element implementation without assertions. More...
 
const Numericget_c_array () const
 Conversion to plain C-array. More...
 
Numericget_c_array ()
 Conversion to plain C-array. More...
 
Iterator5D begin ()
 Return iterator to first shelf. More...
 
Iterator5D end ()
 Return iterator behind last shelf. More...
 
Tensor5Viewoperator= (const ConstTensor5View &v)
 Assignment operator. More...
 
Tensor5Viewoperator= (const Tensor5View &v)
 Assignment from Tensor5View to Tensor5View. More...
 
Tensor5Viewoperator= (const Tensor5 &v)
 Assignment from a Tensor5. More...
 
Tensor5Viewoperator= (Numeric x)
 Assigning a scalar to a Tensor5View will set all elements to this value. More...
 
Tensor5Viewoperator*= (Numeric x)
 Multiplication by scalar. More...
 
Tensor5Viewoperator/= (Numeric x)
 Division by scalar. More...
 
Tensor5Viewoperator+= (Numeric x)
 Addition of scalar. More...
 
Tensor5Viewoperator-= (Numeric x)
 Subtraction of scalar. More...
 
Tensor5Viewoperator*= (const ConstTensor5View &x)
 Element-vise multiplication by another Tensor5. More...
 
Tensor5Viewoperator/= (const ConstTensor5View &x)
 Element-vise division by another Tensor5. More...
 
Tensor5Viewoperator+= (const ConstTensor5View &x)
 Element-vise addition of another Tensor5. More...
 
Tensor5Viewoperator-= (const ConstTensor5View &x)
 Element-vise subtraction of another Tensor5. More...
 
virtual ~Tensor5View ()=default
 Destructor. More...
 
 Tensor5View (const Tensor4View &a)
 Special constructor to make a Tensor5 view of a Tensor4. More...
 
ConstIterator5D begin () const
 Return const iterator to first shelf. More...
 
ConstIterator5D end () const
 Return const iterator behind last shelf. More...
 
Numeric get (Index s, Index b, Index p, Index r, Index c) const
 Get element implementation without assertions. More...
 
- Public Member Functions inherited from ConstTensor5View
constexpr ConstTensor5View (const ConstTensor5View &)=default
 
constexpr ConstTensor5View (ConstTensor5View &&)=default
 
ConstTensor5Viewoperator= (const ConstTensor5View &)=default
 
ConstTensor5Viewoperator= (ConstTensor5View &&)=default
 
bool empty () const
 Check if variable is empty. More...
 
Index nshelves () const
 Returns the number of shelves. More...
 
Index nbooks () const
 Returns the number of books. More...
 
Index npages () const
 Returns the number of pages. More...
 
Index nrows () const
 Returns the number of rows. More...
 
Index ncols () const
 Returns the number of columns. More...
 
ConstTensor5View operator() (const Range &s, const Range &b, const Range &p, const Range &r, const Range &c) const
 Const index operator for subrange. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
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. More...
 
ConstMatrixView operator() (const Range &s, const Range &b, Index p, Index r, Index c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstMatrixView operator() (const Range &s, Index b, const Range &p, Index r, Index c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstMatrixView operator() (const Range &s, Index b, Index p, const Range &r, Index c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstMatrixView operator() (const Range &s, Index b, Index p, Index r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstMatrixView operator() (Index s, const Range &b, Index p, Index r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstMatrixView operator() (Index s, const Range &b, Index p, const Range &r, Index c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstMatrixView operator() (Index s, const Range &b, const Range &p, Index r, Index c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstMatrixView operator() (Index s, Index b, const Range &p, const Range &r, Index c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstMatrixView operator() (Index s, Index b, const Range &p, Index r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstMatrixView operator() (Index s, Index b, Index p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView. More...
 
ConstVectorView operator() (const Range &s, Index b, Index p, Index r, Index c) const
 Const index operator returning an object of type ConstVectorView. More...
 
ConstVectorView operator() (Index s, const Range &b, Index p, Index r, Index c) const
 Const index operator returning an object of type ConstVectorView. More...
 
ConstVectorView operator() (Index s, Index b, const Range &p, Index r, Index c) const
 Const index operator returning an object of type ConstVectorView. More...
 
ConstVectorView operator() (Index s, Index b, Index p, const Range &r, Index c) const
 Const index operator returning an object of type ConstVectorView. More...
 
ConstVectorView operator() (Index s, Index b, Index p, Index r, const Range &c) const
 Const index operator returning an object of type ConstVectorView. More...
 
Numeric operator() (Index s, Index b, Index p, Index r, Index c) const
 Plain const index operator. More...
 
Numeric get (Index s, Index b, Index p, Index r, Index c) const
 Get element implementation without assertions. More...
 
ConstIterator5D begin () const
 Return const iterator to first shelf. More...
 
ConstIterator5D end () const
 Return const iterator behind last shelf. More...
 
virtual ~ConstTensor5View ()=default
 Destructor. More...
 
 ConstTensor5View (const ConstTensor4View &a)
 Special constructor to make a Tensor5 view of a Tensor4. More...
 

Protected Member Functions

 Tensor5View ()=default
 
 Tensor5View (Numeric *data, const Range &s, const Range &b, const Range &p, const Range &r, const Range &c)
 Explicit constructor. More...
 
 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. More...
 
- Protected Member Functions inherited from ConstTensor5View
 ConstTensor5View ()=default
 
 ConstTensor5View (Numeric *data, const Range &s, const Range &b, const Range &p, const Range &r, const Range &c)
 Explicit constructor. More...
 
 ConstTensor5View (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. More...
 

Friends

class Iterator6D
 
class Tensor6View
 
class Tensor7View
 

Additional Inherited Members

- Protected Attributes inherited from ConstTensor5View
Range msr {0, 0, 1}
 The shelf range of mdata that is actually used. More...
 
Range mbr {0, 0, 1}
 The book range of mdata that is actually used. More...
 
Range mpr {0, 0, 1}
 The page range of mdata that is actually used. More...
 
Range mrr {0, 0, 1}
 The row range of mdata that is actually used. More...
 
Range mcr {0, 0, 1}
 The column range of mdata that is actually used. More...
 
Numericmdata {nullptr}
 Pointer to the plain C array that holds the data. More...
 

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 333 of file matpackV.h.

Constructor & Destructor Documentation

◆ Tensor5View() [1/5]

constexpr Tensor5View::Tensor5View ( const Tensor5View )
constexprdefault

◆ ~Tensor5View()

virtual Tensor5View::~Tensor5View ( )
virtualdefault

Destructor.

◆ Tensor5View() [2/5]

Tensor5View::Tensor5View ( const Tensor4View a)

Special constructor to make a Tensor5 view of a Tensor4.

Definition at line 1528 of file matpackV.cc.

◆ Tensor5View() [3/5]

Tensor5View::Tensor5View ( )
protecteddefault

◆ Tensor5View() [4/5]

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 1544 of file matpackV.cc.

◆ Tensor5View() [5/5]

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
*dataThe actual data.
psPrevious range.
pbPrevious range.
ppPrevious range.
prPrevious range.
pcPrevious range.
nsNew Range.
nbNew Range.
npNew Range.
nrNew Range.
ncNew Range.

Definition at line 1574 of file matpackV.cc.

Member Function Documentation

◆ begin() [1/2]

◆ begin() [2/2]

ConstIterator5D ConstTensor5View::begin

Return const iterator to first shelf.

Definition at line 272 of file matpackV.cc.

◆ end() [1/2]

◆ end() [2/2]

ConstIterator5D ConstTensor5View::end

Return const iterator behind last shelf.

Definition at line 273 of file matpackV.cc.

◆ get() [1/2]

Numeric& Tensor5View::get ( Index  s,
Index  b,
Index  p,
Index  r,
Index  c 
)
inline

Get element implementation without assertions.

Definition at line 431 of file matpackV.h.

◆ get() [2/2]

Numeric ConstTensor5View::get
inline

Get element implementation without assertions.

Definition at line 265 of file matpackV.h.

◆ get_c_array() [1/2]

Numeric * Tensor5View::get_c_array ( )

Conversion to plain C-array.

This function returns a pointer to the raw data. It fails if the Tensor5View is not pointing to the beginning of a Tensor5 or the stride is not 1 because the caller expects to get a C array with continuous data.

Definition at line 655 of file matpackV.cc.

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

◆ get_c_array() [2/2]

const Numeric * Tensor5View::get_c_array ( ) const

Conversion to plain C-array.

This function returns a pointer to the raw data. It fails if the Tensor5View is not pointing to the beginning of a Tensor5 or the stride is not 1 because the caller expects to get a C array with continuous data.

Definition at line 675 of file matpackV.cc.

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

Referenced by get_variable_value(), nca_read_from_file(), nca_write_to_file(), and Reduce().

◆ operator()() [1/32]

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 782 of file matpackV.cc.

◆ operator()() [2/32]

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 792 of file matpackV.cc.

◆ operator()() [3/32]

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 804 of file matpackV.cc.

◆ operator()() [4/32]

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 852 of file matpackV.cc.

◆ operator()() [5/32]

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 816 of file matpackV.cc.

◆ operator()() [6/32]

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 872 of file matpackV.cc.

◆ operator()() [7/32]

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 892 of file matpackV.cc.

◆ operator()() [8/32]

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 1052 of file matpackV.cc.

◆ operator()() [9/32]

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 828 of file matpackV.cc.

◆ operator()() [10/32]

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 932 of file matpackV.cc.

◆ operator()() [11/32]

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 912 of file matpackV.cc.

◆ operator()() [12/32]

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 1072 of file matpackV.cc.

◆ operator()() [13/32]

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 952 of file matpackV.cc.

◆ operator()() [14/32]

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 1092 of file matpackV.cc.

◆ operator()() [15/32]

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 1112 of file matpackV.cc.

◆ operator()() [16/32]

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 1252 of file matpackV.cc.

◆ operator()() [17/32]

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 840 of file matpackV.cc.

◆ operator()() [18/32]

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 1012 of file matpackV.cc.

◆ operator()() [19/32]

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 992 of file matpackV.cc.

◆ operator()() [20/32]

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 1172 of file matpackV.cc.

◆ operator()() [21/32]

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 972 of file matpackV.cc.

◆ operator()() [22/32]

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 1152 of file matpackV.cc.

◆ operator()() [23/32]

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 1132 of file matpackV.cc.

◆ operator()() [24/32]

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 1273 of file matpackV.cc.

◆ operator()() [25/32]

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 1032 of file matpackV.cc.

◆ operator()() [26/32]

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 1192 of file matpackV.cc.

◆ operator()() [27/32]

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 1212 of file matpackV.cc.

◆ operator()() [28/32]

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 1294 of file matpackV.cc.

◆ operator()() [29/32]

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 1232 of file matpackV.cc.

◆ operator()() [30/32]

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 1315 of file matpackV.cc.

◆ operator()() [31/32]

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 1336 of file matpackV.cc.

◆ operator()() [32/32]

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

Plain const index operator.

Definition at line 411 of file matpackV.h.

◆ operator*=() [1/2]

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

◆ operator*=() [2/2]

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

Multiplication by scalar.

Definition at line 1428 of file matpackV.cc.

References begin(), end(), and ARTS::Var::x().

◆ operator+=() [1/2]

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

◆ operator+=() [2/2]

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

Addition of scalar.

Definition at line 1446 of file matpackV.cc.

References begin(), end(), and ARTS::Var::x().

◆ operator-=() [1/2]

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

◆ operator-=() [2/2]

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

Subtraction of scalar.

Definition at line 1455 of file matpackV.cc.

References begin(), end(), and ARTS::Var::x().

◆ operator/=() [1/2]

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

◆ operator/=() [2/2]

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

Division by scalar.

Definition at line 1437 of file matpackV.cc.

References begin(), end(), and ARTS::Var::x().

◆ operator=() [1/4]

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 1373 of file matpackV.cc.

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

◆ operator=() [2/4]

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!

Definition at line 1405 of file matpackV.cc.

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

◆ operator=() [3/4]

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 1390 of file matpackV.cc.

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

◆ operator=() [4/4]

Tensor5View & Tensor5View::operator= ( Numeric  x)

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

Definition at line 1419 of file matpackV.cc.

References begin(), copy(), end(), and ARTS::Var::x().

Friends And Related Function Documentation

◆ Iterator6D

friend class Iterator6D
friend

Definition at line 469 of file matpackV.h.

◆ Tensor6View

friend class Tensor6View
friend

Definition at line 470 of file matpackV.h.

◆ Tensor7View

friend class Tensor7View
friend

Definition at line 471 of file matpackV.h.


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