S
ssylee
I know how to implement a matrix as well as some of its operations
using both methods. However, b/c of my pet peeve of avoiding dealing
with dynamic memory allocations myself (at least in the beginning
stage anyway), I'm personally in favor of using vectors over using a
double pointer like **matrix while having memory allocated to it.
However, since I'm dealing with matrices with sizes up to around 4000
x 4000 elements, and execution speed is a concern for me, which would
be faster? How much more beneficial is one method over the alternative
if the execution speed would be significantly different. I know it
would depend on the hardware that's running the code as well, but in
general, I guess I can generalize the hardware that I'm running on
with at least 2 cores.
Thanks.
using both methods. However, b/c of my pet peeve of avoiding dealing
with dynamic memory allocations myself (at least in the beginning
stage anyway), I'm personally in favor of using vectors over using a
double pointer like **matrix while having memory allocated to it.
However, since I'm dealing with matrices with sizes up to around 4000
x 4000 elements, and execution speed is a concern for me, which would
be faster? How much more beneficial is one method over the alternative
if the execution speed would be significantly different. I know it
would depend on the hardware that's running the code as well, but in
general, I guess I can generalize the hardware that I'm running on
with at least 2 cores.
Thanks.