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

5{
6 ArraySquareX a(4); a << 1.,2.,3.,4.
7 , 1.,2.,3.,4.
8 , 1.,1.,1.,1.
9 , 1.,1.,1.,1.;
10 // create a reference
11 ArrayXX b(a.sub(Range(2), Range(3)), true);
12 b = -1.;
13 std::cout << "Modified a=\n" << a << "\n";
14
15 PointX m;
16 m.move(Stat::mean(a));
17 std::cout << "m= " << m;
18 return 0;
19}
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Index sub-vector region: Specialization when the size is unknown.
Definition STK_Range.h:265
hidden::FunctorTraits< Derived, MeanOp >::Row mean(Derived const &A)
Compute the mean(s) value(s) of A.
TRange< UnknownSize > Range
Definition STK_Range.h:59

References STK::Stat::mean(), STK::IArray2D< Derived >::move(), and STK::IArray2D< Derived >::sub().