1750 INDEX Index
The type to use for all integer numbers and indices.
friend void swap(Matrix &m1, Matrix &m2)
Swaps two objects.
Iterator2D begin()
Return const iterator to first row.
const Numeric * mx
Current position.
void swap(Vector &v1, Vector &v2)
void cross3(VectorView c, const ConstVectorView &a, const ConstVectorView &b)
cross3
ConstIterator1D begin() const
Return const iterator to first element.
Index nelem() const
Number of elements.
bool empty() const
Returns true if variable size is zero.
Interface for BLAS library.
Index mstart
The start index.
ConstVectorView diagonal() const
Matrix diagonal as vector.
Numeric * mdata
Pointer to the plain C array that holds the data.
Eigen::Map< MatrixType, 0, StrideType > MatrixViewMap
MatrixView & operator*=(Numeric x)
Multiplication by scalar.
const Numeric * get_c_array() const
Conversion to plain C-array.
void copy(ConstIterator1D origin, const ConstIterator1D &end, Iterator1D target)
VectorView operator*=(Numeric x)
Multiplication by scalar.
Numeric & operator[](Index n)
Plain Index operator.
void dgemv_(char *trans, int *m, int *n, double *alpha, double *A, int *LDA, double *x, int *incx, double *beta, double *y, int *incy)
Matrix-Vector Multiplication.
Eigen::Map< Matrix4x4Type, 0, StrideType > Matrix4x4ViewMap
friend class ConstIterator2D
bool empty() const
Returns true if variable size is zero.
The row iterator class for sub matrices.
Numeric operator*(const ConstVectorView &a, const ConstVectorView &b)
Scalar product.
Iterator2D end()
Return iterator behind last row.
Numeric min(const ConstVectorView &x)
Min function, vector version.
Eigen::Stride< Eigen::Dynamic, Eigen::Dynamic > StrideType
VectorView operator+=(Numeric x)
Addition of scalar.
ConstIterator1D end() const
Return const iterator behind last element.
constexpr Index get_start() const
Returns the start index of the range.
G0 G2 FVC Y DV Numeric Numeric Numeric Zeeman LowerQuantumNumbers void * data
Index nelem() const
Returns the number of elements.
Matrix & operator=(const Matrix &x)
Assignment operator from another matrix.
ConstIterator2D begin() const
Return const iterator to first row.
Iterator1D begin()
Return iterator to first element.
VectorView operator-=(Numeric x)
Subtraction of scalar.
The const row iterator class for sub matrices.
Index ncols() const
Returns the number of columns.
Iterator1D end()
Return iterator behind last element.
const Numeric * get_c_array() const
Conversion to plain C-array, const-version.
friend class ConstMatrixView
Range mrr
The row range of mdata that is actually used.
ConstMatrixViewMap MapToEigenCol(const ConstVectorView &A)
friend void mult_general(VectorView, const ConstMatrixView &, const ConstVectorView &)
Matrix Vector multiplication.
void proj(Vector &c, ConstVectorView a, ConstVectorView b)
Numeric max(const ConstVectorView &x)
Max function, vector version.
Numeric sum() const
The sum of all elements of a Vector.
constexpr Index get_extent() const
Returns the extent of the range.
The declarations of all the exception classes.
Eigen::Map< const Matrix4x4Type, 0, StrideType > ConstMatrix4x4ViewMap
Numeric operator[](Index n) const
Plain const index operator.
ConstIterator2D end() const
Return const iterator behind last row.
virtual ~Vector()
Destructor for Vector.
friend void swap(Vector &v1, Vector &v2)
Swaps two objects.
Numeric operator()(Index r, Index c) const
Plain const index operator.
Eigen::Map< const MatrixType, 0, StrideType > ConstMatrixViewMap
NUMERIC Numeric
The type to use for all floating point numbers.
std::ostream & operator<<(std::ostream &os, const Range &r)
constexpr Index get_stride() const
Returns the stride of the range.
Range mcr
The column range of mdata that is actually used.
Implementation of Matrix, Vector, and such stuff.
Index mextent
The number of elements.
This can be used to make arrays out of anything.
friend ConstMatrix4x4ViewMap MapToEigen4x4(const ConstMatrixView &)
MatrixView & operator=(const ConstMatrixView &v)
Assignment operator.
Workspace & init(Workspace &ws)
ConstMatrixView()=default
void resize(Index n)
Resize function.
MatrixView & operator-=(Numeric x)
Subtraction of scalar.
friend ConstMatrixView transpose(ConstMatrixView m)
Const version of transpose.
friend ConstMatrixViewMap MapToEigen(const ConstMatrixView &)
A constant view of a Vector.
Numeric vector_angle(ConstVectorView a, ConstVectorView b)
VectorView & operator=(const ConstVectorView &v)
Assignment operator.
Vector & operator=(const Vector &v)
Assignment from another Vector.
Numeric mean(const ConstVectorView &x)
Mean function, vector version.
constexpr Rational start(Rational Ju, Rational Jl, Polarization type) noexcept
Gives the lowest M for a polarization type of this transition.
Numeric * mdata
Pointer to the plain C array that holds the data.
A constant view of a Matrix.
ConstVectorView()=default
Numeric debug_matrixview_get_elem(MatrixView &mv, Index r, Index c)
Helper function to access matrix elements.
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...
MatrixView & operator/=(Numeric x)
Division by scalar.
Numeric * mx
Current position.
Range mrange
The range of mdata that is actually used.
The constant iterator class for sub vectors.
MatrixView & operator+=(Numeric x)
Addition of scalar.
void dgemm_(char *transa, char *transb, int *m, int *n, int *k, double *alpha, double *A, int *lda, double *B, int *ldb, double *beta, double *C, int *ldc)
BLAS matrix multiplication.
The iterator class for sub vectors.
friend void mult(MatrixView, const ConstMatrixView &, const ConstMatrixView &)
Matrix-Matrix Multiplication.
Numeric & operator()(Index r, Index c)
Plain index operator.
ConstMatrixViewMap MapToEigenRow(const ConstVectorView &A)
Index nrows() const
Returns the number of rows.
const Numeric RAD2DEG
Global constant, conversion from radians to degrees.
Numeric sqrt(const Rational r)
Square root.
void resize(Index r, Index c)
Resize function.
VectorView operator/=(Numeric x)
Division by scalar.
virtual ~Matrix()
Destructor for Matrix.