STK++ 0.9.13
tutoAccessors2.cpp File Reference
#include "STKpp.h"
Include dependency graph for tutoAccessors2.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 tutoAccessors2.cpp.

4{
5 ArrayXX t(5, 5); // array of size 5x5
6 for (int i=t.beginRows(); i<t.endRows(); i++)
7 {
8 PointX r(t.row(i), true); // create a reference on the i-th row of t
9 // fill the i-th row of t with the number i
10 r= i; // same as for (int j=r.begin(); j<r.end(); j++) { r[j] = i;}
11 }
12 std::cout << "t =\n" << t;
13 return 0;
14}
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...

References STK::IArray2D< Derived >::beginRows(), STK::IArray2D< Derived >::endRows(), and STK::IArray2D< Derived >::row().