Which library do I have to include in order to use "valarray"

Jacob Smith jnsmith@utmb.edu
Tue Jan 13 22:18:00 GMT 2004


Try '#include <valarray>', caveat: your mileage may vary; the "foo.h" 
form of the include libraries is deprecated, for example: use <string> 
not <string.h>; use <iostream> not <iostream.h>; use <sstream> not 
<stringstream.h> etc.

-j.

Michael Thuswaldner wrote:

> Hello!
>
> According to C++ reference literature one should use valarray instead 
> of arrays or vector to represent Vectors and Matrices for Numeric 
> implementations. However to include the header file valarray.h, as the 
> literature suggests, does not do the trick!
>
> Which header file should I include?
>
> Best Regards,
>
> Michael
>
> _________________________________________________________________
> Hitta rätt på nätet med MSN Sök http://search.msn.se/
>
>
>




More information about the Gcc-help mailing list