Matrix<int> mat = new Matrix<int>(arr);
canming wrote:If you have an array "int[,] arr" and you wants to convert it to a matrix, consider the following call:Matrix<int> mat = new Matrix<int>(arr);
mat.Ptr will return the header for the matrix. If you are interested on how this is done, you can look into the source code of the matrix constructor.
Users browsing this forum: No registered users and 0 guests