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");
111 for (
int i = 0;
i < m.cols();
i++)
117 for (
int i = 0;
i < m.rows();
i++)
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");
193 for (
int i = 0;
i < m.cols();
i++)
199 for (
int i = 0;
i < m.rows();
i++)
223 for (
int i = 0;
i < m.rows();
i++)
224 for (
int j = 0;
j < m.cols();
j++)
249 for (
int i = 0;
i < m.rows();
i++)
250 for (
int j = 0;
j < m.cols();
j++)
void set_size(int n, bool copy=false)
Resizing an Array<T>.
int length() const
Returns the number of data elements in the array object.
#define it_assert(t, s)
Abort if t is not true.
int min_index(const Vec< T > &in)
Return the postion of the minimum element in the vector.
T min(const Vec< T > &in)
Minimum value of vector.
T max(const Vec< T > &v)
Maximum value of vector.
int max_index(const Vec< T > &in)
Return the postion of the maximum element in the vector.
Matrix Class Definitions.