48 for (
int i = 1; i < v.
length(); i++)
60 for (
int i = 1; i < v.
length(); i++)
78 it_assert((dim == 1) || (dim == 2),
"max(): dimension need to be 1 or 2");
82 for (
int i = 0; i < m.
cols(); i++)
87 for (
int i = 0; i < m.
rows(); i++)
106 it_assert((dim == 1) || (dim == 2),
"max(): dimension need to be 1 or 2");
110 index.set_size(m.
cols(),
false);
111 for (
int i = 0; i < m.
cols(); i++)
116 index.set_size(m.
rows(),
false);
117 for (
int i = 0; i < m.
rows(); i++)
128 for (
int i = 1; i < in.
length(); i++)
140 for (
int i = 1; i < in.
length(); i++)
141 if (in[i] < mindata) {
159 it_assert((dim == 1) || (dim == 2),
"min(): dimension need to be 1 or 2");
163 for (
int i = 0; i < m.
cols(); i++)
168 for (
int i = 0; i < m.
rows(); i++)
188 it_assert((dim == 1) || (dim == 2),
"min(): dimension need to be 1 or 2");
192 index.set_size(m.
cols(),
false);
193 for (
int i = 0; i < m.
cols(); i++)
198 index.set_size(m.
rows(),
false);
199 for (
int i = 0; i < m.
rows(); i++)
211 for (
int i = 1; i < in.
length(); i++)
212 if (in[i] > in[maxindex])
223 for (
int i = 0; i < m.
rows(); i++)
224 for (
int j = 0; j < m.
cols(); j++)
225 if (m(i, j) > maxdata) {
237 for (
int i = 1; i < in.
length(); i++)
238 if (in[i] < in[minindex])
249 for (
int i = 0; i < m.
rows(); i++)
250 for (
int j = 0; j < m.
cols(); j++)
251 if (m(i, j) < mindata) {