43template<
typename Type,
int SizeRows_ = UnknownSize,
int SizeCols_ = UnknownSize,
bool Orient_ = Arrays::by_col_>
class CArray;
44template<
typename Type,
int Size_,
bool Orient_>
class CArraySquare;
45template<
typename Type,
int SizeCols_,
bool Orient_>
class CArrayPoint;
46template<
typename Type,
int SizeRows_,
bool Orient_>
class CArrayVector;
47template<
typename Type,
bool Orient_>
class CArrayNumber;
99template<
typename Type_,
int SizeRows_,
int SizeCols_,
bool Orient_>
128template <
typename Type_,
int SizeRows_,
int SizeCols_,
bool Orient_>
129class CArray:
public ICArray < CArray<Type_, SizeRows_, SizeCols_, Orient_> >
154 CArray(
int sizeRows,
int sizeCols):
Base(sizeRows, sizeCols) {}
180 template<
class OtherArray>
187 CArray(
Type*
const& q,
int sizeRows,
int sizeCols):
Base(q, sizeRows, sizeCols) {}
191 template<
class OtherAllocator>
196 template<
class OtherDerived>
220template <
typename Type,
int SizeRows_,
int SizeCols_,
bool Orient_>
Interface base class for the CArray, this is an internal header file, included by other Containers li...
CArray< Type_, SizeRows_, SizeCols_, Orient_ > & operator=(Type const &value)
CArray< Type_, SizeRows_, SizeCols_, Orient_ > & setValue(TypeConst value)
set a value to this container.
CArray< Type_, SizeRows_, SizeCols_, Orient_ > & assign(ExprBase< Rhs > const &rhs)
A CArray is a two dimensional array with a continuous storage like a C-array.
CArray()
Default constructor.
CArray(ICArray< OtherArray > const &T, Range const &I, Range const &J)
Copy constructor by reference, ref_=1.
hidden::Traits< CArray< Type_, SizeRows_, SizeCols_, Orient_ > >::Type Type
CArray(ITContainer2D< OtherAllocator > const &allocator)
constructor by reference.
ICArray< CArray< Type_, SizeRows_, SizeCols_, Orient_ > > Base
CArray & operator=(CArray const &rhs)
operator = : overwrite the CArray with the Right hand side rhs.
hidden::Traits< CArray< Type_, SizeRows_, SizeCols_, Orient_ > >::Row Row
CArray(Range rows, Range cols, Type const &v)
constructor with specified ranges, initialization with a constant.
CArray(CArray const &T, bool ref=false)
Copy constructor.
hidden::Traits< CArray< Type_, SizeRows_, SizeCols_, Orient_ > >::Col Col
hidden::Traits< CArray< Type_, SizeRows_, SizeCols_, Orient_ > >::TypeConst TypeConst
CArray(Range rows, Range cols)
constructor with specified ranges.
CArray & operator=(ExprBase< Rhs > const &rhs)
operator = : overwrite this with the Right hand side rhs.
CArray(ExprBase< OtherDerived > const &T)
Copy constructor using an expression.
CArray & operator=(Type const &v)
operator= : set the container to a constant value.
CArray(int sizeRows, int sizeCols, Type const &v)
constructor with specified size, initialization with a constant.
CArray(Type *const &q, int sizeRows, int sizeCols)
wrapper constructor for 0 based C-Array.
CArray(int sizeRows, int sizeCols)
constructor with specified dimension.
ArrayBase< CArray< Type_, SizeRows_, SizeCols_, Orient_ > > LowBase
CArray< Type_, SizeRows_, SizeCols_, Orient_ > & shift(int beginRows, int beginCols)
shift the Array.
Allocator const & allocator() const
Get a constant reference on the main allocator.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
int begin() const
get the first index of the TRange.
Index sub-vector region: Specialization when the size is unknown.
ostream & out2D(ostream &os, ITContainer< Array > const &V)
Method for displaying any two dimensional Array or Expression.
ostream & operator<<(ostream &s, const CAllocator< Type, SizeRows_, SizeCols_, Orient_ > &V)
output stream for CAllocator.
@ dense_
dense matrix/vector/array/expression
@ array2D_
general matrix/array/expression
std::basic_ostream< Char > ostream
ostream for Char
The namespace STK is the main domain space of the Statistical ToolKit project.
CArray< int, UnknownSize, 2, Arrays::by_col_ > CArrayX2i
CArray< double, 2, 2, Arrays::by_col_ > CArray22d
CArray< Real, 3, 3, Arrays::by_col_ > CArray33
CArray< Real, 2, 2, Arrays::by_row_ > CArrayByRow22
CArray< Real, UnknownSize, UnknownSize, Arrays::by_col_ > CArrayXX
CArray< double, 3, UnknownSize, Arrays::by_col_ > CArray3Xd
CArray< int, 2, 2, Arrays::by_col_ > CArray22i
CArray< double, UnknownSize, 2, Arrays::by_row_ > CArrayByRowX2d
CArray< double, UnknownSize, UnknownSize, Arrays::by_col_ > CArrayXXd
CArray< Real, 3, 3, Arrays::by_row_ > CArrayByRow33
CArray< Real, UnknownSize, 3, Arrays::by_col_ > CArrayX3
CArray< Real, 2, 2, Arrays::by_col_ > CArray22
CArray< double, UnknownSize, UnknownSize, Arrays::by_row_ > CArrayByRowXXd
CArray< double, 3, UnknownSize, Arrays::by_row_ > CArrayByRow3Xd
CArray< Real, 3, UnknownSize, Arrays::by_col_ > CArray3X
CArray< int, UnknownSize, UnknownSize, Arrays::by_row_ > CArrayByRowXXi
CArray< double, UnknownSize, 3, Arrays::by_row_ > CArrayByRowX3d
CArray< Real, UnknownSize, UnknownSize, Arrays::by_row_ > CArrayByRowXX
CArray< Real, 2, UnknownSize, Arrays::by_row_ > CArrayByRow2X
CArray< double, 3, 3, Arrays::by_col_ > CArray33d
CArray< double, 3, 3, Arrays::by_row_ > CArrayByRow33d
CArray< double, 2, UnknownSize, Arrays::by_row_ > CArrayByRow2Xd
CArray< Real, UnknownSize, 3, Arrays::by_row_ > CArrayByRowX3
CArray< int, 3, 3, Arrays::by_col_ > CArray33i
CArray< double, UnknownSize, 3, Arrays::by_col_ > CArrayX3d
CArray< double, UnknownSize, 2, Arrays::by_col_ > CArrayX2d
CArray< int, 3, UnknownSize, Arrays::by_col_ > CArray3Xi
CArray< double, 2, UnknownSize, Arrays::by_col_ > CArray2Xd
CArray< int, 2, 2, Arrays::by_row_ > CArrayByRow22i
CArray< Real, UnknownSize, 2, Arrays::by_row_ > CArrayByRowX2
CArray< int, UnknownSize, 2, Arrays::by_row_ > CArrayByRowX2i
CArray< int, UnknownSize, 3, Arrays::by_row_ > CArrayByRowX3i
CArray< int, UnknownSize, 3, Arrays::by_col_ > CArrayX3i
CArray< int, 2, UnknownSize, Arrays::by_row_ > CArrayByRow2Xi
CArray< int, UnknownSize, UnknownSize, Arrays::by_col_ > CArrayXXi
CArray< int, 3, 3, Arrays::by_row_ > CArrayByRow33i
CArray< int, 3, UnknownSize, Arrays::by_row_ > CArrayByRow3Xi
CArray< Real, 2, UnknownSize, Arrays::by_col_ > CArray2X
CArray< double, 2, 2, Arrays::by_row_ > CArrayByRow22d
CArray< Real, UnknownSize, 2, Arrays::by_col_ > CArrayX2
CArray< int, 2, UnknownSize, Arrays::by_col_ > CArray2Xi
CArray< Real, 3, UnknownSize, Arrays::by_row_ > CArrayByRow3X
CAllocator< Type_, SizeRows_, SizeCols_, Orient_ > Allocator
RemoveConst< Type >::Type const & TypeConst
CArrayPoint< Type_, SizeCols_, Orient_ > Row
CArrayVector< Type_, SizeRows_, Orient_ > Col