*
reidarok@gmail.com:[color=blue]
> [mostly incoherent][/color]
[color=blue]
> The 'ones'-function in Numeric creates a new array of a given
> size/dimension and fills it with the value '1'.[/color]
There is no 'ones' function and there is no Numeric in standard C++.
[color=blue]
> A simple C++ version of this code could be the following:
>
> #import <cstring>[/color]
This is not standard C++.
[color=blue]
> double [] ones_array = new double[blah] // initialize an array with[/color]
This is not standard C++.
[color=blue]
> memset(ones_array, 1, sizeof(double))[/color]
This is Undefined Behavior.
[color=blue]
> If you want a more advanced array class, you might want to take a look
> at the STL vector-class.[/color]
That's good advice.
--
A: Because it messes up the order in which people normally read text.
Q: Why is it such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet and in e-mail?