2 from eigen_ref
import *
9 assert np.array_equal(mat,np.full(mat.shape,1.))
11 A_ref =
asRef(mat.shape[0],mat.shape[1])
13 A_ref2 =
asRef(mat.shape[0],mat.shape[1])
15 assert np.array_equal(A_ref,A_ref2)
18 assert np.array_equal(A_ref,A_ref2)
24 mat = np.array(np.zeros((rows,cols)))
Eigen::Ref< MatType > asRef(const int rows, const int cols)
void printMatrix(const Eigen::Ref< const MatType > mat)
void fill(Eigen::Ref< MatType > mat, const typename MatType::Scalar &value)