cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
vector matrices or pointer to pointer ma
vector matrices or pointer to pointer matrices?
Sep 17, 2014 at 12:37pm UTC
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
Sep 17, 2014 at 12:39pm UTC
Sep 17, 2014 at 1:02pm UTC
LB
(13399)
You should always use the solution which involves fewer pointers and fewer uses of
new
and
delete
.
Sep 17, 2014 at 1:09pm UTC
keskiverto
(10402)
Choose the option C: Find a math library that already implements matrix type(s) and linear algebra for you.
Sep 18, 2014 at 12:44pm UTC
closed account (
y0XSE3v7
)
Thanks guys.
Topic archived. No new replies allowed.