36#ifndef STK_ARRAY2DDIAGONAL_H
37#define STK_ARRAY2DDIAGONAL_H
46template<
typename Type>
class Array2DDiagonal;
47template<
typename Type>
class Array2DPoint;
48template<
typename Type>
class Array2DVector;
149 template<
class OtherDerived>
In this file we implement the modifiers of the IArray2D.
In this file we implement the slicing methods for IArray2D class.
Interface base class for the Array2D classes, this is an internal header file, included by other cont...
Derivation of the Array2DDiagonal class for square arrays of Real.
hidden::Traits< Array2DDiagonal< Type_ > >::SubVector SubVector
void setValue1D(int i, TypeConst v)
Set value at position i.
IArray2D< Array2DDiagonal< Type_ > > Base
Type for the Interface Class.
void popBack(int n=1)
Delete n rows and columns at the end of the container.
Array2DDiagonal & operator=(const Array2DDiagonal &T)
overwrite the Array2D with T.
Array2DDiagonal(Array2DDiagonal const &T, bool ref=false)
Copy constructor.
Array2DDiagonal & resize1D(Range const &I)
New size for the container.
Array2DDiagonal & operator=(Type const &v)
set the container to a constant value.
hidden::Traits< Array2DDiagonal< Type_ > >::Type Type
Array2DDiagonal(Range const &I, Real const &v)
constructor with cols_and rows_ givens, initialization with a constant.
Array2DDiagonal()
Default constructor.
Array2DDiagonal & operator=(ExprBase< Rhs > const &T)
operator = : overwrite the CArray with the Right hand side T.
~Array2DDiagonal()
destructor.
void pushBack(int n=1)
Add n rows and columns to the container.
hidden::Traits< Array2DDiagonal< Type_ > >::TypeConst TypeConst
Array2DDiagonal(ExprBase< OtherDerived > const &T)
Copy constructor using an expression.
hidden::Traits< Array2DDiagonal< Type_ > >::Col Col
Array2DDiagonal(Range const &I)
Constructor with specified range.
void insertElt(int pos, int n=1)
Insert n rows and column at the given position to the container.
void erase(int pos, int n=1)
Delete n rows and columns at the specified position to the container.
Array2DDiagonal(Array2DDiagonal const &T, Range const &I)
constructor by reference, ref_=1 in the range given by I.
void shift1D(int beg)
New beginning index for the object.
hidden::Traits< Array2DDiagonal< Type_ > >::Row Row
ArrayBase< Array2DDiagonal< Type_ > > LowBase
hidden::Traits< Array2DDiagonal< Type_ > >::SubRow SubRow
hidden::Traits< Array2DDiagonal< Type_ > >::SubArray SubArray
Type const & elt1Impl(int i) const
hidden::Traits< Array2DDiagonal< Type_ > >::SubCol SubCol
Array2DDiagonal< Type_ > & operator=(Type const &value)
Array2DDiagonal< Type_ > & setValue(TypeConst value)
set a value to this container.
Array2DDiagonal< Type_ > & assign(ExprBase< Rhs > const &rhs)
template interface base class for two-dimensional arrays.
void insertCols(int pos, int n=1)
Insert n columns at the index pos to the array.
Array2DDiagonal< Type_ > & resize(Range const &I, Range const &J)
resize the array.
void pushBackCols(int n=1)
Add n columns at the end of the array.
void popBackCols(int n=1)
Delete last columns of the array.
void update(Range const &J)
Update columns of the array at a specified range.
void shift(int rbeg, int cbeg)
Set new beginning indexes to the array.
void eraseCols(int pos, int n=1)
Delete n columns at the specified position of the array.
void decEndRows(int dec)
Decrement the end of the number of rows.
void incEndRows(int inc)
Increment the end of the number of rows.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Index sub-vector region: Specialization when the size is unknown.
@ dense_
dense matrix/vector/array/expression
@ diagonal_
diagonal matrix/array/expression
@ by_col_
storage by column
const int UnknownSize
This value means that an integer is not known at compile-time, and that instead the value is stored i...
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.
Array2DDiagonal< int > ArrayDiagonalXi
Array2DDiagonal< Real > ArrayDiagonalX
TRange< UnknownSize > Range
Array2DDiagonal< double > ArrayDiagonalXd
Array2DDiagonal< Type_ > SubArray
Array2DVector< Type_ > SubCol
Array2DDiagonal< Type_ > SubVector
Array1D< Type, UnknownSize > ColVector
Array2DVector< Type_ > Col
RemoveConst< Type >::Type const & TypeConst
Array2DPoint< Type_ > SubRow
Array2DPoint< Type_ > Row