STK++ 0.9.13
tutoRemoveRowsAndCols.cpp File Reference
#include "STKpp.h"
Include dependency graph for tutoRemoveRowsAndCols.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Definition at line 3 of file tutoRemoveRowsAndCols.cpp.

4{
5 ArrayXX A(5, 6);
6 Law::Normal law(1.,2.);
7 A.rand(law);
8 stk_cout << _T("A =\n") << A;
9 // Remove 2 columns
10 A.popBackCols(2);
11 // erase two rows in position 1
12 A.eraseRows(1,2);
13 stk_cout << _T("A =\n") << A;
14
15 PointX B(6); B << 1, 2, 3, 4, 5, 6;
16 stk_cout << _T("B =\n") << B;
17 // erase three elements at the position 2
18 B.erase(2,3);
19 stk_cout << _T("B =\n") << B;
20}
#define stk_cout
Standard stk output stream.
#define _T(x)
Let x unmodified.
Normal distribution law.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...

References _T, STK::Array2DPoint< Type_ >::erase(), STK::IArray2D< Derived >::eraseRows(), STK::IArray2D< Derived >::popBackCols(), STK::ArrayBase< Derived >::rand(), and stk_cout.