STK++ 0.9.13
tutoConstructors.cpp
Go to the documentation of this file.
1#include "STKpp.h"
2using namespace STK;
3int main(int argc, char** argv)
4{
5 // Array2D constructors
6 Array2DDiagonal<Real> a(3); a= 1.; // same as Array2DDiagonal<Real> a(3, 1.);
7 Array2DSquare<Real> b(3); b = 0.; // same as Array2DSquare<Real> b(3, 0.);
8 Array2DUpperTriangular<Real> c(3, 3); c= 2.; // same as Array2DUpperTriangular<Real> c(3, 3, 2.);
9 Array2DLowerTriangular<Real> d(3, 3); d = -2.;// same as Array2DLowerTriangular<Real> d(3, 3, -2.);
10 Array2DVector<Real> e(3); e= 5.; // same as Array2DVector<Real> e(3, 5.);
11 Array2DPoint<Real> f(3); f = 6.; // same as Array2DPoint<Real> f(3, 6.);
12 // CArray constructors
13 CArraySquare<Real> g(3); g= 0.; // same as CArraySquare<Real> g(3, 0.);
14 CArrayVector<Real> j(3); j= 5.; // same as CArrayVector<Real> j(3, 5.);
15 CArrayPoint<Real> k(3); k = 6.; // same as CArrayPoint<Real> k(3, 6.);
16 return 0;
17}
This file include all the header files of the STK++ project.
Derivation of the Array2DDiagonal class for square arrays of Real.
Declaration of the lower triangular matrix class.
template one dimensional horizontal Array.
Derivation of the Array2DSquare class for square arrays of Real.
Declaration of the upper triangular matrix class.
template one dimensional horizontal Array.
declaration of the point case.
specialization for the square case.
specialization for the vector case.
The namespace STK is the main domain space of the Statistical ToolKit project.
int main(int argc, char **argv)