Talk About Network

Google





Programming > C - C++ Learning > Re: vectorized ...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 15 of 16 Topic 4213 of 4400
Post > Topic >>

Re: vectorized computation in C++ such as those in Matlab (Matlab

by Francis Glassborow <francis.glassborow@[EMAIL PROTECTED] > Aug 8, 2008 at 01:12 PM

Jerry Coffin wrote:
> In article <a47fac46-bb33-4608-bd97-
> f75cd419340f@[EMAIL PROTECTED]
>, 
> gherdovich@[EMAIL PROTECTED]
 says...
> 
> [ ... ]
> 
>> Another user answers with what I find a more reasonable argument:
>> std::valarray<> was designed to meet the characteristic of vector
>> machines, like the Cray. If you don't have the Cray, there is
>> no point in doing math with valarray<> and related operators.
> 
> In theory that's right: the basic idea was to provide something that 
> could be implemented quite efficiently on vector machines. In fact, I've

> never heard of anybody optimizing the code for a vector machine, so it 
> may be open to question whether it provides any real advantage on them.

During the mid-90s both C and C++ were involved in adding features that 
would sup****t numerically intense programming. Unfortunately a couple of 
years later the companies whose numerical experts doing the grunt work 
withdrew sup****t. By hindsight it might have been better to have shelved 
the work but both WG14 and WG21 opted to continue hoping that they would 
still produce something useful.

It is not obvious to those outside the numerical fields that actually 
developing things like complex number sup****t, sup****t for array 
arithmetic etc. is fraught with subtle traps.


> 
> OTOH, valarray _can_ make some code quite readable, so it's not always a

> complete loss anyway.
> 

-- 
Note that robinton.demon.co.uk addresses are no longer valid.
 




 16 Posts in Topic:
vectorized computation in C++ such as those in Matlab (Matlab to
Luna Moon <lunamoonmoo  2008-07-22 07:08:38 
Re: vectorized computation in C++ such as those in Matlab (Matla
Leandro Melo <ltcmelo@  2008-07-22 08:00:51 
Re: vectorized computation in C++ such as those in Matlab (Matla
Luna Moon <lunamoonmoo  2008-07-22 08:38:21 
Re: vectorized computation in C++ such as those in Matlab (Matla
Lionel B <me@[EMAIL PR  2008-07-22 16:37:22 
Re: vectorized computation in C++ such as those in Matlab (Matla
Bart van Ingen Schenau &l  2008-07-22 18:36:31 
Re: vectorized computation in C++ such as those in Matlab (Matla
rocksportrocker <rocks  2008-07-23 06:29:32 
Re: vectorized computation in C++ such as those in Matlab (Matla
Bo Schwarzstein <Bo.Sc  2008-07-24 18:20:52 
Re: vectorized computation in C++ such as those in Matlab (Matla
William Ahern <william  2008-07-26 18:29:16 
Re: vectorized computation in C++ such as those in Matlab (Matla
Giovanni Gherdovich <g  2008-08-06 05:54:29 
Re: vectorized computation in C++ such as those in Matlab (Matla
Rune Allnor <allnor@[E  2008-08-06 06:27:42 
Re: vectorized computation in C++ such as those in Matlab (Matla
dj3vande@[EMAIL PROTECTED  2008-08-06 17:37:47 
Re: vectorized computation in C++ such as those in Matlab (Matla
Uwe Schmitt <rocksport  2008-08-07 07:37:25 
Re: vectorized computation in C++ such as those in Matlab (Matla
Giovanni Gherdovich <g  2008-08-07 09:48:11 
Re: vectorized computation in C++ such as those in Matlab (Matla
Jerry Coffin <jcoffin@  2008-08-07 22:38:18 
Re: vectorized computation in C++ such as those in Matlab (Matla
Francis Glassborow <fr  2008-08-08 13:12:48 
Re: vectorized computation in C++ such as those in Matlab (Matla
Giovanni Gherdovich <g  2008-08-08 09:27:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
localhost-V2008-12-19 Fri Jan 9 5:37:54 PST 2009.