NMath matirx

Clearing a vector

A customer recently asked us for the best method to zero out a vector. We decided to run some tests to find out. Here are the five methods we tried followed by performance timing and any drawbacks. The following tests were performed on a DoubleVector of length 10,000,000. 1) Create a new vector. This isn't really clearing out an existing vector but we thought we should include it for complet...
Read More