36#ifndef STK_SARRAY2DDIAGONAL_H
37#define STK_SARRAY2DDIAGONAL_H
48template<
typename Type>
class SArray2DDiagonal;
49template<
typename Type>
class SArray2DPoint;
50template<
typename Type>
class SArray2DVector;
151 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...
In this file we define and implement the final class SArray1D.
SArray2DDiagonal< Type_ > & operator=(Type const &value)
SArray2DDiagonal< Type_ > & setValue(TypeConst value)
set a value to this container.
SArray2DDiagonal< 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.
SArray2DDiagonal< 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...
Derivation of the SArray2DDiagonal class for square arrays of Real.
hidden::Traits< SArray2DDiagonal< Type_ > >::SubRow SubRow
SArray2DDiagonal(ExprBase< OtherDerived > const &T)
Copy constructor using an expression.
SArray2DDiagonal(SArray2DDiagonal const &T, Range const &I)
constructor by reference, ref_=1 in the range given by I.
SArray2DDiagonal()
Default constructor.
SArray2DDiagonal(Range const &I, Real const &v)
constructor with cols_and rows_ givens, initialization with a constant.
SArray2DDiagonal & operator=(const SArray2DDiagonal &T)
overwrite the SArray2D with T.
void popBack(int n=1)
Delete n rows and columns at the end of the container.
void erase(int pos, int n=1)
Delete n rows and columns at the specified position to the container.
SArray2DDiagonal & resize1D(Range const &I)
New size for the container.
SArray2DDiagonal & operator=(Type const &v)
set the container to a constant value.
IArray2D< SArray2DDiagonal< Type_ > > Base
Type for the Interface Class.
void shift1D(int beg)
New beginning index for the object.
hidden::Traits< SArray2DDiagonal< Type_ > >::TypeConst TypeConst
SArray2DDiagonal(Range const &I)
Constructor with specified range.
ArrayBase< SArray2DDiagonal< Type_ > > LowBase
hidden::Traits< SArray2DDiagonal< Type_ > >::Type Type
hidden::Traits< SArray2DDiagonal< Type_ > >::SubVector SubVector
hidden::Traits< SArray2DDiagonal< Type_ > >::SubArray SubArray
SArray2DDiagonal & operator=(ExprBase< Rhs > const &T)
operator = : overwrite the CArray with the Right hand side T.
void pushBack(int n=1)
Add n rows and columns to the container.
Type const & elt1Impl(int i) const
~SArray2DDiagonal()
destructor.
hidden::Traits< SArray2DDiagonal< Type_ > >::SubCol SubCol
void setValue1D(int i, TypeConst v)
Set value at position i.
SArray2DDiagonal(SArray2DDiagonal const &T, bool ref=false)
Copy constructor.
void insertElt(int pos, int n=1)
Insert n rows and column at the given position to the container.
hidden::Traits< SArray2DDiagonal< Type_ > >::Col Col
hidden::Traits< SArray2DDiagonal< Type_ > >::Row Row
Index sub-vector region: Specialization when the size is unknown.
@ sparse_
sparse matrix/vector/array/expression
@ 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.
SArray2DDiagonal< Real > SArrayDiagonalX
SArray2DDiagonal< double > SArrayDiagonalXd
SArray2DDiagonal< int > SArrayDiagonalXi
TRange< UnknownSize > Range
SArray2DPoint< Type_ > Row
SArray2DDiagonal< Type_ > SubVector
RemoveConst< Type >::Type const & TypeConst
SArray2DVector< Type_ > SubCol
SArray2DPoint< Type_ > SubRow
SArray2DDiagonal< Type_ > SubArray
SArray2DVector< Type_ > Col
SArray1D< Type, UnknownSize, UnknownSize > ColVector