Tensor4View Class Reference

The Tensor4View class. More...

#include <matpackIV.h>

Inheritance diagram for Tensor4View:

Inheritance graph
[legend]
Collaboration diagram for Tensor4View:

Collaboration graph
[legend]

List of all members.

Public Member Functions

ConstTensor4View operator() (const Range &b, const Range &p, const Range &r, const Range &c) const
 Const index operator for subrange.
ConstTensor3View operator() (const Range &b, const Range &p, const Range &r, Index c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (const Range &b, const Range &p, Index r, const Range &c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (const Range &b, Index p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstTensor3View.
ConstTensor3View operator() (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 &b, const Range &p, Index r, Index c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (const Range &b, Index p, const Range &r, Index c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (const Range &b, Index p, Index r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (Index b, const Range &p, Index r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (Index b, const Range &p, const Range &r, Index c) const
 Const index operator returning an object of type ConstMatrixView.
ConstMatrixView operator() (Index b, Index p, const Range &r, const Range &c) const
 Const index operator returning an object of type ConstMatrixView.
ConstVectorView operator() (const Range &b, Index p, Index r, Index c) const
 Const index operator returning an object of type ConstVectorView.
ConstVectorView operator() (Index b, const Range &p, Index r, Index c) const
 Const index operator returning an object of type ConstVectorView.
ConstVectorView operator() (Index b, Index p, const Range &r, Index c) const
 Const index operator returning an object of type ConstVectorView.
ConstVectorView operator() (Index b, Index p, Index r, const Range &c) const
 Const index operator returning an object of type ConstVectorView.
Numeric operator() (Index b, Index p, Index r, Index c) const
 Plain const index operator.
Tensor4View operator() (const Range &b, const Range &p, const Range &r, const Range &c)
 Index operator for subrange.
Tensor3View operator() (const Range &b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (const Range &b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (const Range &b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor3View.
Tensor3View operator() (Index b, const Range &p, const Range &r, const Range &c)
 Index operator returning an object of type Tensor3View.
MatrixView operator() (const Range &b, const Range &p, Index r, Index c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (const Range &b, Index p, const Range &r, Index c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (const Range &b, Index p, Index r, const Range &c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (Index b, const Range &p, Index r, const Range &c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (Index b, const Range &p, const Range &r, Index c)
 Index operator returning an object of type MatrixView.
MatrixView operator() (Index b, Index p, const Range &r, const Range &c)
 Index operator returning an object of type MatrixView.
VectorView operator() (const Range &b, Index p, Index r, Index c)
 Index operator returning an object of type VectorView.
VectorView operator() (Index b, const Range &p, Index r, Index c)
 Index operator returning an object of type VectorView.
VectorView operator() (Index b, Index p, const Range &r, Index c)
 Index operator returning an object of type VectorView.
VectorView operator() (Index b, Index p, Index r, const Range &c)
 Index operator returning an object of type VectorView.
Numericoperator() (Index b, Index p, Index r, Index c)
 Plain non-const index operator.
const Numericget_c_array () const
 Conversion to plain C-array.
Numericget_c_array ()
 Conversion to plain C-array.
ConstIterator4D begin () const
 Return const iterator to first book.
ConstIterator4D end () const
 Return const iterator behind last book.
Iterator4D begin ()
 Return iterator to first book.
Iterator4D end ()
 Return iterator behind last book.
Tensor4Viewoperator= (const ConstTensor4View &v)
 Assignment operator.
Tensor4Viewoperator= (const Tensor4View &v)
 Assignment from Tensor4View to Tensor4View.
Tensor4Viewoperator= (const Tensor4 &v)
 Assignment from a Tensor4.
Tensor4Viewoperator= (Numeric x)
 Assigning a scalar to a Tensor4View will set all elements to this value.
Tensor4Viewoperator*= (Numeric x)
 Multiplication by scalar.
Tensor4Viewoperator/= (Numeric x)
 Division by scalar.
Tensor4Viewoperator+= (Numeric x)
 Addition of scalar.
Tensor4Viewoperator-= (Numeric x)
 Subtraction of scalar.
Tensor4Viewoperator*= (const ConstTensor4View &x)
 Element-vise multiplication by another Tensor4.
Tensor4Viewoperator/= (const ConstTensor4View &x)
 Element-vise division by another Tensor4.
Tensor4Viewoperator+= (const ConstTensor4View &x)
 Element-vise addition of another Tensor4.
Tensor4Viewoperator-= (const ConstTensor4View &x)
 Element-vise subtraction of another Tensor4.
virtual ~Tensor4View ()
 Destructor.
 Tensor4View (const Tensor3View &a)
 Special constructor to make a Tensor4 view of a Tensor3.

Protected Member Functions

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

Friends

class Iterator5D
class Tensor5View
class Tensor6View
class Tensor7View


Detailed Description

The Tensor4View class.

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

The class Tensor4 is just a special case of a Tensor4View which also allocates storage.

Definition at line 245 of file matpackIV.h.


Constructor & Destructor Documentation

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

Destructor.

Definition at line 342 of file matpackIV.h.

Tensor4View::Tensor4View ( const Tensor3View a  ) 

Special constructor to make a Tensor4 view of a Tensor3.

Definition at line 1194 of file matpackIV.cc.

Tensor4View::Tensor4View (  )  [protected]

Default constructor.

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

Definition at line 1209 of file matpackIV.cc.

Referenced by operator()().

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

Explicit constructor.

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

Definition at line 1218 of file matpackIV.cc.

Tensor4View::Tensor4View ( Numeric data,
const Range pb,
const Range pp,
const Range pr,
const Range pc,
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.
pb Previous range.
pp Previous range.
pr Previous range.
pc Previous range.
nb New Range.
np New Range.
nr New Range.
nc New Range.

Definition at line 1246 of file matpackIV.cc.


Member Function Documentation

ConstTensor4View Tensor4View::operator() ( 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 Tensor4. 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 ConstTensor4View.

Definition at line 523 of file matpackIV.cc.

References ConstTensor4View::operator()().

ConstTensor3View Tensor4View::operator() ( 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 one.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor4View.

Definition at line 535 of file matpackIV.cc.

References ConstTensor4View::operator()().

ConstTensor3View Tensor4View::operator() ( 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 one.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor4View.

Definition at line 547 of file matpackIV.cc.

References ConstTensor4View::operator()().

ConstTensor3View Tensor4View::operator() ( 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 one.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor4View.

Definition at line 559 of file matpackIV.cc.

References ConstTensor4View::operator()().

ConstTensor3View Tensor4View::operator() ( 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 one.) Has to be redefined here, since it is hiden by the non-const operator of the derived class.

Reimplemented from ConstTensor4View.

Definition at line 571 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstMatrixView.

(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 ConstTensor4View.

Definition at line 583 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstMatrixView.

(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 ConstTensor4View.

Definition at line 595 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstMatrixView.

(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 ConstTensor4View.

Definition at line 607 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstMatrixView.

(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 ConstTensor4View.

Definition at line 619 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstMatrixView.

(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 ConstTensor4View.

Definition at line 631 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstMatrixView.

(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 ConstTensor4View.

Definition at line 643 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstVectorView.

(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 ConstTensor4View.

Definition at line 655 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstVectorView.

(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 ConstTensor4View.

Definition at line 667 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstVectorView.

(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 ConstTensor4View.

Definition at line 679 of file matpackIV.cc.

References ConstTensor4View::operator()().

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

Const index operator returning an object of type ConstVectorView.

(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 ConstTensor4View.

Definition at line 691 of file matpackIV.cc.

References ConstTensor4View::operator()().

Numeric Tensor4View::operator() ( 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 ConstTensor4View.

Definition at line 270 of file matpackIV.h.

References ConstTensor4View::operator()().

Tensor4View Tensor4View::operator() ( 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 Tensor4. This allows correct recursive behavior.

Definition at line 702 of file matpackIV.cc.

References ConstTensor4View::mbr, ConstTensor4View::mcr, ConstTensor4View::mdata, ConstTensor4View::mpr, ConstTensor4View::mrr, and Tensor4View().

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

Index operator returning an object of type Tensor3View.

(Reducing the dimension by one.)

Definition at line 714 of file matpackIV.cc.

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

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

Index operator returning an object of type Tensor3View.

(Reducing the dimension by one.)

Definition at line 731 of file matpackIV.cc.

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

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

Index operator returning an object of type Tensor3View.

(Reducing the dimension by one.)

Definition at line 748 of file matpackIV.cc.

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

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

Index operator returning an object of type Tensor3View.

(Reducing the dimension by one.)

Definition at line 765 of file matpackIV.cc.

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

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

Index operator returning an object of type MatrixView.

(Reducing the dimension by two.)

Definition at line 782 of file matpackIV.cc.

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

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

Index operator returning an object of type MatrixView.

(Reducing the dimension by two.)

Definition at line 802 of file matpackIV.cc.

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

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

Index operator returning an object of type MatrixView.

(Reducing the dimension by two.)

Definition at line 822 of file matpackIV.cc.

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

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

Index operator returning an object of type MatrixView.

(Reducing the dimension by two.)

Definition at line 842 of file matpackIV.cc.

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

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

Index operator returning an object of type MatrixView.

(Reducing the dimension by two.)

Definition at line 862 of file matpackIV.cc.

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

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

Index operator returning an object of type MatrixView.

(Reducing the dimension by two.)

Definition at line 882 of file matpackIV.cc.

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

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

Index operator returning an object of type VectorView.

(Reducing the dimension by three.)

Definition at line 902 of file matpackIV.cc.

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

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

Index operator returning an object of type VectorView.

(Reducing the dimension by three.)

Definition at line 925 of file matpackIV.cc.

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

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

Index operator returning an object of type VectorView.

(Reducing the dimension by three.)

Definition at line 948 of file matpackIV.cc.

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

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

Index operator returning an object of type VectorView.

Reducing the dimension by three.)

Definition at line 971 of file matpackIV.cc.

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

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

const Numeric * Tensor4View::get_c_array (  )  const

Conversion to plain C-array.

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

Definition at line 399 of file matpackIV.cc.

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

Referenced by nc_read_from_file(), and nc_write_to_file().

Numeric * Tensor4View::get_c_array (  ) 

Conversion to plain C-array.

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

Definition at line 382 of file matpackIV.cc.

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

ConstIterator4D Tensor4View::begin (  )  const

Return const iterator to first book.

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

Reimplemented from ConstTensor4View.

Definition at line 994 of file matpackIV.cc.

References ConstTensor4View::begin().

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

ConstIterator4D Tensor4View::end (  )  const

Return const iterator behind last book.

Reimplemented from ConstTensor4View.

Definition at line 1000 of file matpackIV.cc.

References ConstTensor4View::end().

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

Iterator4D Tensor4View::begin (  ) 

Iterator4D Tensor4View::end (  ) 

Tensor4View & Tensor4View::operator= ( const ConstTensor4View m  ) 

Assignment operator.

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

Definition at line 1026 of file matpackIV.cc.

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

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

Assignment from Tensor4View to Tensor4View.

This is a tricky one. The problem is that since Tensor4View is derived from ConstTensor4View, 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 1043 of file matpackIV.cc.

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

Tensor4View & Tensor4View::operator= ( const Tensor4 m  ) 

Assignment from a Tensor4.

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

Reimplemented in Tensor4.

Definition at line 1058 of file matpackIV.cc.

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

Tensor4View & Tensor4View::operator= ( Numeric  x  ) 

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

Reimplemented in Tensor4.

Definition at line 1072 of file matpackIV.cc.

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

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

Multiplication by scalar.

Definition at line 1082 of file matpackIV.cc.

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

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

Division by scalar.

Definition at line 1093 of file matpackIV.cc.

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

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

Addition of scalar.

Definition at line 1104 of file matpackIV.cc.

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

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

Subtraction of scalar.

Definition at line 1115 of file matpackIV.cc.

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

Tensor4View & Tensor4View::operator*= ( const ConstTensor4View x  ) 

Tensor4View & Tensor4View::operator/= ( const ConstTensor4View x  ) 

Tensor4View & Tensor4View::operator+= ( const ConstTensor4View x  ) 

Tensor4View & Tensor4View::operator-= ( const ConstTensor4View x  ) 


Friends And Related Function Documentation

friend class Iterator5D [friend]

Definition at line 342 of file matpackIV.h.

friend class Tensor5View [friend]

Definition at line 349 of file matpackIV.h.

friend class Tensor6View [friend]

Definition at line 350 of file matpackIV.h.

friend class Tensor7View [friend]

Definition at line 351 of file matpackIV.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