You might want to consider allocating one contiguos block of memory. This is helpful in reading the data in from a file and copying one matrix to the other. Below, is a detailed explanation:
int rows = 50, cols = 100; // in general no need to be square
type **buffer; // substitute type with...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.