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: Google [Bot], Yahoo [Bot] and 1 guest