36#ifndef STK_ARRAY2DSQUARE_H
37#define STK_ARRAY2DSQUARE_H
46template<
typename Type>
class Array2DSquare;
47template<
typename Type>
class Array2D;
48template<
typename Type>
class Array2DPoint;
49template<
typename Type>
class Array2DVector;
153 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 Array2DSquare class for square arrays of Real.
hidden::Traits< Array2DSquare< Type_ > >::Row Row
IArray2D< Array2DSquare< Type_ > > Base
Type for the Interface Class.
void pushBack(int n=1)
Add n rows and columns to the container.
void popBack(int n=1)
Delete n rows and columns at the end of the container.
hidden::Traits< Array2DSquare< Type_ > >::SubArray SubArray
hidden::Traits< Array2DSquare< Type_ > >::Type Type
void insert(int pos, int n=1)
Insert n rows and column at the given position to the container.
hidden::Traits< Array2DSquare< Type_ > >::SubVector SubVector
Array2DSquare(Range const &I, Type const &v)
constructor with cols_and rows_ givens, initialization with a constant.
Array2DSquare(Array2DSquare const &T, Range const &I)
constructor by reference, ref_=1 in the range given by I.
Array2DSquare(Range const &I)
Default constructor with specified Range.
hidden::Traits< Array2DSquare< Type_ > >::SubCol SubCol
Array2DSquare & operator=(Array2DSquare const &T)
overwrite the Array2D with T.
Array2DSquare(Array2DSquare const &T, bool ref=false)
Copy constructor.
hidden::Traits< Array2DSquare< Type_ > >::SubRow SubRow
hidden::Traits< Array2DSquare< Type_ > >::TypeConst TypeConst
hidden::Traits< Array2DSquare< Type_ > >::Col Col
Array2DSquare & operator=(Type const &v)
set the container to a constant value.
ArrayBase< Array2DSquare< Type_ > > LowBase
Array2DSquare & operator=(ExprBase< Rhs > const &T)
operator = : overwrite the CArray with the Right hand side T.
Array2DSquare()
Default constructor with cols_=(1:0) and rows_=(1:0).
void shift1D(int beg)
New beginning index for the object.
Array2DSquare(ExprBase< OtherDerived > const &T)
Copy constructor using an expression.
Array2DSquare & resize1D(Range const &I)
New size for the container.
void erase(int pos, int n=1)
Delete n rows and columns at the specified position to the container.
~Array2DSquare()
destructor.
Array2DSquare< Type_ > & operator=(Type const &value)
Array2DSquare< Type_ > & setValue(TypeConst value)
set a value to this container.
Array2DSquare< 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.
Array2DSquare< 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 pushBackRows(int n=1)
Add n rows to the array.
void eraseRows(int pos, int n=1)
Delete n rows at the position pos.
void popBackRows(int n=1)
Delete n latest rows of the array.
void shift(int rbeg, int cbeg)
Set new beginning indexes to the array.
void insertRows(int pos, int n=1)
Insert n rows at position pos in the array If pos is outside the range of a column,...
void eraseCols(int pos, int n=1)
Delete n columns at the specified position of the array.
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
@ square_
square 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...
The namespace STK is the main domain space of the Statistical ToolKit project.
Array2DSquare< Real > ArraySquareX
Array2DSquare< double > ArraySquareXd
Array2DSquare< int > ArraySquareXi
Array2DPoint< Type_ > SubRow
Array2DPoint< Type_ > Row
Array2D< Type_ > SubArray
Array2DVector< Type_ > SubCol
Array1D< Type, UnknownSize > ColVector
RemoveConst< Type >::Type const & TypeConst
Array2DVector< Type_ > Col