vector matrices or pointer to pointer matrices?

closed account (y0XSE3v7)
I wrote two header files to do linear algebra in a neural network. In the first one I used a pointer to pointer member and dynamically allocated it to store a matrix.
In the second one I used a vector of vectors. Which one should I use?

Last edited on
You should always use the solution which involves fewer pointers and fewer uses of new and delete.
Choose the option C: Find a math library that already implements matrix type(s) and linear algebra for you.
closed account (y0XSE3v7)
Thanks guys.
Topic archived. No new replies allowed.