ARTS
2.3.1285(git:92a29ea9-dirty)
|
The Tensor5View class. More...
#include <matpackV.h>
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... | |
Numeric & | operator() (Index s, Index b, Index p, Index r, Index c) |
Plain const index operator. More... | |
Numeric & | get (Index s, Index b, Index p, Index r, Index c) |
Get element implementation without assertions. More... | |
const Numeric * | get_c_array () const |
Conversion to plain C-array. More... | |
Numeric * | get_c_array () |
Conversion to plain C-array. More... | |
Iterator5D | begin () |
Return iterator to first shelf. More... | |
Iterator5D | end () |
Return iterator behind last shelf. More... | |
Tensor5View & | operator= (const ConstTensor5View &v) |
Assignment operator. More... | |
Tensor5View & | operator= (const Tensor5View &v) |
Assignment from Tensor5View to Tensor5View. More... | |
Tensor5View & | operator= (const Tensor5 &v) |
Assignment from a Tensor5. More... | |
Tensor5View & | operator= (Numeric x) |
Assigning a scalar to a Tensor5View will set all elements to this value. More... | |
Tensor5View & | operator*= (Numeric x) |
Multiplication by scalar. More... | |
Tensor5View & | operator/= (Numeric x) |
Division by scalar. More... | |
Tensor5View & | operator+= (Numeric x) |
Addition of scalar. More... | |
Tensor5View & | operator-= (Numeric x) |
Subtraction of scalar. More... | |
Tensor5View & | operator*= (const ConstTensor5View &x) |
Element-vise multiplication by another Tensor5. More... | |
Tensor5View & | operator/= (const ConstTensor5View &x) |
Element-vise division by another Tensor5. More... | |
Tensor5View & | operator+= (const ConstTensor5View &x) |
Element-vise addition of another Tensor5. More... | |
Tensor5View & | operator-= (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... | |
Public Member Functions inherited from ConstTensor5View | |
constexpr | ConstTensor5View (const ConstTensor5View &)=default |
constexpr | ConstTensor5View (ConstTensor5View &&)=default |
ConstTensor5View & | operator= (const ConstTensor5View &)=default |
ConstTensor5View & | operator= (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... | |
Numeric * | mdata {nullptr} |
Pointer to the plain C array that holds the data. More... | |
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.
|
default |
|
virtualdefault |
Destructor.
Tensor5View::Tensor5View | ( | const Tensor4View & | a | ) |
Special constructor to make a Tensor5 view of a Tensor4.
Definition at line 1528 of file matpackV.cc.
|
protecteddefault |
|
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.
|
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.
*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 1574 of file matpackV.cc.
Iterator5D Tensor5View::begin | ( | ) |
Return iterator to first shelf.
Definition at line 1356 of file matpackV.cc.
References ConstTensor5View::mbr, ConstTensor5View::mcr, ConstTensor5View::mdata, ConstTensor5View::mpr, ConstTensor5View::mrr, ConstTensor5View::msr, Range::mstart, and Range::mstride.
Referenced by copy(), operator=(), Tensor5::Tensor5(), and transform().
Iterator5D Tensor5View::end | ( | ) |
Return iterator behind last shelf.
Definition at line 1362 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 copy(), and operator=().
Get element implementation without assertions.
Definition at line 431 of file matpackV.h.
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().
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1052 of file matpackV.cc.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1072 of file matpackV.cc.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1092 of file matpackV.cc.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1112 of file matpackV.cc.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1132 of file matpackV.cc.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1152 of file matpackV.cc.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1172 of file matpackV.cc.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1192 of file matpackV.cc.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1212 of file matpackV.cc.
Index operator returning an object of type MatrixView.
(Reducing the dimension by three.)
Definition at line 1232 of file matpackV.cc.
Index operator returning an object of type VectorView.
(Reducing the dimension by four.)
Definition at line 1252 of file matpackV.cc.
Index operator returning an object of type VectorView.
(Reducing the dimension by four.)
Definition at line 1273 of file matpackV.cc.
Index operator returning an object of type VectorView.
(Reducing the dimension by four.)
Definition at line 1294 of file matpackV.cc.
Index operator returning an object of type VectorView.
(Reducing the dimension by four.)
Definition at line 1315 of file matpackV.cc.
Const index operator returning an object of type ConstVectorView.
(Reducing the dimension by four.)
Definition at line 1336 of file matpackV.cc.
Tensor5View & Tensor5View::operator*= | ( | Numeric | x | ) |
Multiplication by scalar.
Definition at line 1428 of file matpackV.cc.
References ConstTensor5View::begin(), and ConstTensor5View::end().
Tensor5View & Tensor5View::operator*= | ( | const ConstTensor5View & | x | ) |
Element-vise multiplication by another Tensor5.
Definition at line 1464 of file matpackV.cc.
References ConstTensor5View::begin(), ConstTensor5View::end(), ConstTensor5View::nbooks(), ConstTensor5View::ncols(), ConstTensor5View::npages(), ConstTensor5View::nrows(), and ConstTensor5View::nshelves().
Tensor5View & Tensor5View::operator+= | ( | Numeric | x | ) |
Addition of scalar.
Definition at line 1446 of file matpackV.cc.
References ConstTensor5View::begin(), and ConstTensor5View::end().
Tensor5View & Tensor5View::operator+= | ( | const ConstTensor5View & | x | ) |
Element-vise addition of another Tensor5.
Definition at line 1496 of file matpackV.cc.
References ConstTensor5View::begin(), ConstTensor5View::end(), ConstTensor5View::nbooks(), ConstTensor5View::ncols(), ConstTensor5View::npages(), ConstTensor5View::nrows(), and ConstTensor5View::nshelves().
Tensor5View & Tensor5View::operator-= | ( | Numeric | x | ) |
Subtraction of scalar.
Definition at line 1455 of file matpackV.cc.
References ConstTensor5View::begin(), and ConstTensor5View::end().
Tensor5View & Tensor5View::operator-= | ( | const ConstTensor5View & | x | ) |
Element-vise subtraction of another Tensor5.
Definition at line 1512 of file matpackV.cc.
References ConstTensor5View::begin(), ConstTensor5View::end(), ConstTensor5View::nbooks(), ConstTensor5View::ncols(), ConstTensor5View::npages(), ConstTensor5View::nrows(), and ConstTensor5View::nshelves().
Tensor5View & Tensor5View::operator/= | ( | Numeric | x | ) |
Division by scalar.
Definition at line 1437 of file matpackV.cc.
References ConstTensor5View::begin(), and ConstTensor5View::end().
Tensor5View & Tensor5View::operator/= | ( | const ConstTensor5View & | x | ) |
Element-vise division by another Tensor5.
Definition at line 1480 of file matpackV.cc.
References ConstTensor5View::begin(), ConstTensor5View::end(), ConstTensor5View::nbooks(), ConstTensor5View::ncols(), ConstTensor5View::npages(), ConstTensor5View::nrows(), and ConstTensor5View::nshelves().
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 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 1390 of file matpackV.cc.
References ConstTensor5View::begin(), 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!
Definition at line 1405 of file matpackV.cc.
References ConstTensor5View::begin(), 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.
Definition at line 1419 of file matpackV.cc.
References ConstTensor5View::begin(), copy(), and ConstTensor5View::end().
|
friend |
Definition at line 469 of file matpackV.h.
|
friend |
Definition at line 470 of file matpackV.h.
|
friend |
Definition at line 471 of file matpackV.h.