Go to the documentation of this file.
234 {
if (
mx != other.
mx)
return true;
else return false; }
269 {
if (
mx != other.
mx)
return true;
else return false; }
565 Vector(
const std::vector<Numeric>&);
854 double (&my_func)(
double),
858 double (&my_func)(
double),
Const version of Iterator7D.
Numeric operator()(Index r, Index c) const
Plain const index operator.
Numeric * mx
Current position.
friend void copy(ConstIterator1D origin, const ConstIterator1D &end, Iterator1D target)
Copy data between begin and end to target.
ConstIterator1D & operator++()
Prefix increment operator.
void transform(VectorView y, double(&my_func)(double), ConstVectorView x)
A generic transform function for vectors, which can be used to implement mathematical functions opera...
Index get_extent() const
Returns the extent of the range.
friend Numeric operator*(const ConstVectorView &a, const ConstVectorView &b)
Scalar product.
Matrix & operator=(Matrix x)
Assignment operator from another matrix.
VectorView()
Default constructor.
bool operator!=(const Iterator2D &other) const
Not equal operator, needed for algorithms like copy.
ConstVectorView msv
Current position.
Iterator2D & operator++()
Prefix increment operator.
MatrixView & operator=(const ConstMatrixView &v)
Assignment operator.
const ConstVectorView & operator*() const
Dereferencing.
Vector()
Default constructor.
The constant iterator class for sub vectors.
friend int poly_root_solve(Matrix &roots, Vector &coeffs)
Iterator1D(Numeric *x, Index stride)
Explicit constructor.
ConstMatrixView transpose(ConstMatrixView m)
Const version of transpose.
MatrixView()
Default constructor.
A constant view of a Tensor7.
ConstIterator2D const_iterator
Numeric mean(const ConstVectorView &x)
Mean function, vector version.
friend ConstMatrixView transpose(ConstMatrixView m)
Const version of transpose.
Implementation of Tensors of Rank 7.
Const version of Iterator3D.
Vector & operator=(Vector v)
Assignment from another Vector.
Numeric vector_angle(ConstVectorView a, ConstVectorView b)
Numeric * mdata
Pointer to the plain C array that holds the data.
friend void copy(ConstIterator1D origin, const ConstIterator1D &end, Iterator1D target)
Copy data between begin and end to target.
ConstIterator1D()
Default constructor.
Iterator2D(const VectorView &x, Index stride)
Explicit constructor.
void resize(Index n)
Resize function.
ConstVectorView()
Default constructor.
MatrixView & operator+=(Numeric x)
Addition of scalar.
Numeric get(Index n) const
Get element implementation without assertions.
friend void mult(VectorView, const ConstMatrixView &, const ConstVectorView &)
Matrix Vector multiplication.
Index nrows() const
Returns the number of rows.
void copy(ConstIterator1D origin, const ConstIterator1D &end, Iterator1D target)
Copy data between begin and end to target.
friend void swap(Matrix &m1, Matrix &m2)
Swaps two objects.
ConstIterator2D()
Default constructor.
Range mrange
The range of mdata that is actually used.
Index mstart
The start index.
Implementation of Tensors of Rank 5.
MatrixView & operator-=(Numeric x)
Subtraction of scalar.
Numeric get(Index r, Index c) const
Get element implementation without assertions.
MatrixView & operator/=(Numeric x)
Division by scalar.
Numeric get(Index n) const
Get element implementation without assertions.
friend ConstMatrixView transpose(ConstMatrixView m)
Const version of transpose.
friend int poly_root_solve(Matrix &roots, Vector &coeffs)
This file contains the definition of Array.
void mult(VectorView y, const ConstMatrixView &M, const ConstVectorView &x)
Matrix Vector multiplication.
Numeric & get(Index r, Index c)
Get element implementation without assertions.
Range mcr
The column range of mdata that is actually used.
VectorView & operator=(const ConstVectorView &v)
Assignment operator.
VectorView operator/=(Numeric x)
Division by scalar.
virtual ~ConstVectorView()
Destructor.
Range mrr
The row range of mdata that is actually used.
Const version of Iterator4D.
A constant view of a Tensor4.
Implementation of Tensors of Rank 3.
friend void mult(VectorView, const ConstMatrixView &, const ConstVectorView &)
Matrix Vector multiplication.
virtual ~ConstMatrixView()
Destructor.
ConstIterator1D end() const
Return const iterator behind last element.
ConstIterator2D begin() const
Return const iterator to first row.
ConstIterator2D end() const
Return const iterator behind last row.
Numeric debug_matrixview_get_elem(MatrixView &mv, Index r, Index c)
Helper function to access matrix elements.
virtual ~Matrix()
Destructor for Matrix.
std::ostream & operator<<(std::ostream &os, const ConstVectorView &v)
Output operator.
Const version of Iterator6D.
Index ncols() const
Returns the number of columns.
Numeric max(const ConstVectorView &x)
Max function, vector version.
ConstIterator1D(Numeric *x, Index stride)
Explicit constructor.
The iterator class for sub vectors.
bool operator!=(const ConstIterator2D &other) const
Not equal operator, needed for algorithms like copy.
Index nelem() const
Returns the number of elements.
virtual ~Vector()
Destructor for Vector.
const Numeric & operator*() const
Dereferencing.
ConstIterator1D begin() const
Return const iterator to first element.
Range(Index start, Index extent, Index stride=1)
Numeric sum() const
The sum of all elements of a Vector.
A constant view of a Tensor6.
NUMERIC Numeric
The type to use for all floating point numbers.
Numeric & operator*() const
Dereferencing.
VectorView & operator*()
Dereferencing.
friend void swap(Vector &v1, Vector &v2)
Swaps two objects.
ConstIterator2D(const ConstVectorView &x, Index stride)
Explicit constructor.
Numeric & operator()(Index r, Index c)
Plain index operator.
Numeric * mdata
Pointer to the plain C array that holds the data.
Numeric operator[](Index n) const
Plain const index operator.
Numeric min(const ConstVectorView &x)
Min function, vector version.
Numeric operator()(Index r, Index c) const
Plain const index operator.
void resize(Index r, Index c)
Resize function.
bool operator!=(const ConstIterator1D &other) const
Not equal operator, needed for algorithms like copy.
friend void mult(VectorView, const ConstMatrixView &, const ConstVectorView &)
Matrix Vector multiplication.
Numeric get(Index r, Index c) const
Get element implementation without assertions.
ConstIterator1D begin() const
Return const iterator to first element.
The outermost iterator class for rank 6 tensors.
Iterator2D()
Default constructor.
The const row iterator class for sub matrices.
A constant view of a Matrix.
void cross3(VectorView c, const ConstVectorView &a, const ConstVectorView &b)
cross3
Iterator1D & operator++()
Prefix increment operator.
Index get_stride() const
Returns the stride of the range.
Index mextent
The number of elements.
ConstIterator2D end() const
Return const iterator behind last row.
VectorView msv
Current position.
Matrix()
Default constructor.
VectorView operator*=(Numeric x)
Multiplication by scalar.
Numeric & operator[](Index n)
Plain Index operator.
Implementation of Tensors of Rank 4.
VectorView operator-=(Numeric x)
Subtraction of scalar.
ConstMatrixView()
Default constructor.
A constant view of a Tensor3.
Numeric & get(Index n)
Get element implementation without assertions.
ConstIterator2D begin() const
Return const iterator to first row.
virtual ~VectorView()
Destructor.
ConstIterator1D end() const
Return const iterator behind last element.
The row iterator class for sub matrices.
Index get_start() const
Returns the start index of the range.
ConstIterator2D & operator++()
Prefix increment operator.
const ConstVectorView * operator->() const
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
INDEX Index
The type to use for all integer numbers and indices.
MatrixView & operator*=(Numeric x)
Multiplication by scalar.
ConstIterator1D const_iterator
Numeric operator*(const ConstVectorView &a, const ConstVectorView &b)
Scalar product.
const Numeric * get_c_array() const
Conversion to plain C-array.
bool operator!=(const Iterator1D &other) const
Not equal operator, needed for algorithms like copy.
Iterator1D()
Default constructor.
Const version of Iterator5D.
void proj(Vector &c, ConstVectorView a, ConstVectorView b)
A constant view of a Vector.
VectorView operator+=(Numeric x)
Addition of scalar.
friend class ConstMatrixView
const Numeric * mx
Current position.
virtual ~MatrixView()
Destructor.
A constant view of a Tensor5.
const Numeric * get_c_array() const
Conversion to plain C-array.
Binary output file stream class.
VectorView * operator->()
The -> operator is needed, so that we can write i->begin() to get the 1D iterators.
Numeric operator[](Index n) const
Plain const index operator.