1 #ifndef ESSENTIA_TNT2ESSENTIAUTILS_H
2 #define ESSENTIA_TNT2ESSENTIAUTILS_H
18 for (
int i=0; i<m; i++)
19 for (
int j=0; j<n; j++)
33 if (m == 0 || n == 0 )
37 for (
int i=0; i<m; i++)
38 for (
int j=0; j<n; j++)
39 result[i][j] = A[i][j] / k;
46 for (
int i = 0; i < A.
dim1(); i++) {
47 for (
int j = 0; j < A.
dim2(); j++) {
Definition: tnt_array2d.h:38
int dim1() const
Definition: tnt_array2d.h:231
int dim2() const
Definition: tnt_array2d.h:234
Definition: algorithm.h:28
TNT::Array2D< T > & operator/=(TNT::Array2D< T > &A, const T &k)
Definition: tnt2essentiautils.h:10
TNT::Array2D< T > & matinit(TNT::Array2D< T > &A)
Definition: tnt2essentiautils.h:45
TNT::Array2D< T > operator/(const TNT::Array2D< T > &A, const T &k)
Definition: tnt2essentiautils.h:25