Re: Vector efficiency



Christopher Smith wrote:
Is there a meaningful differnece in efficiency between using a vector
<Double> and using an array double[]?

The array is definitely more space-efficient, if you don't need the
Double objects for any other reason. It will also make more efficient
use of caches, especially for sequential scans. It may also be a bit
more time efficient, because of less indirection.

However, the real test is which works better in your program.

Patricia
.