diff --git a/ex2.5/ndim.cpp b/ex2.5/ndim.cpp index 575da19..1236a07 100644 --- a/ex2.5/ndim.cpp +++ b/ex2.5/ndim.cpp @@ -37,7 +37,6 @@ int main() { - double * nvec = multiply( ivec, Nx, mtx ); @@ -49,6 +48,17 @@ int main() { } std::cout << "]" << std::endl; delete nvec; + + // print the matrix as it is stored in memory + std::cout << "In-Memory Matrix = "; + std::cout << "[" << std::endl; + + for ( int i = 0; i < Nx*Y_SIZE; i++ ){ + std::cout << mtx[0][i] << ", "; + } + std::cout << std::endl; + std::cout << "]" << std::endl; + }