I need to get an input N from the user and generate a N*N matrix. How can I declare the matrix? Generally, the size of the array and matrix should be fixed at the declaration, right?
What about vector<vector<int>> ? I never use this before so I need suggestion from veteran.
I need to get an input N from the user and generate a N*N
Share
Boost implements matrices (supporting mathematical operations) in its uBLAS library, and provides usage syntax like the following.