STK++
0.9.13
tutoAccessors2.cpp
Go to the documentation of this file.
1
#include "
STKpp.h
"
2
using namespace
STK
;
3
int
main
(
int
argc,
char
** argv)
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
}
STKpp.h
This file include all the header files of the STK++ project.
STK::Array2DPoint< Real >
STK::Array2D< Real >
STK::IArray2D::beginRows
int beginRows() const
Definition
STK_IArray2D.h:180
STK::IArray2D::endRows
int endRows() const
Definition
STK_IArray2D.h:182
STK::IArray2D::row
Row row(int i) const
access to a part of a row.
Definition
STK_IArray2DSlicers.h:84
STK
The namespace STK is the main domain space of the Statistical ToolKit project.
main
int main(int argc, char **argv)
Definition
tutoAccessors2.cpp:3
doc
tutorials
programs
tutoAccessors2.cpp
Generated on Sat Feb 15 2025 12:07:01 for STK++ by
1.9.8