Topic: valarray


Author: herwin@gmu.edu (Harry Erwin)
Date: 1998/01/18
Raw View
Peter Nordlund <petern@nada.kth.se> wrote:

> Does anyone know where I can find an implementation of the
> valarray class?
> Preferably one that is as close as possible to the standard as
> described in Stroustrup's "The C++ Programming Language (3rd edition)"
> chapter 22.
>
> I haven't seen any compilers providing valarray.
> I know of the implementation by David Vandevoorde
> ftp://ftp.cs.rpi.edu/pub/vandevod/Valarray/

Metrowerks Codewarrior Pro 2.

--
Harry Erwin, herwin@gmu.edu, http://osf1.gmu.edu/~herwin, Senior
Software Analyst for the FAA, PhD candidate modeling how bats
echolocate and lecturer for CS 211 (data structures and advanced C++).
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: Lassi Tuura <lat@hpatl20.cern.ch>
Date: 1998/01/20
Raw View
Peter Nordlund <petern@nada.kth.se> writes:
> Does anyone know where I can find an implementation of the
> valarray class?
> Preferably one that is as close as possible to the standard as
> described in Stroustrup's "The C++ Programming Language (3rd edition)"
> chapter 22.
>
> I haven't seen any compilers providing valarray.

KAI C++ compiler seems to come with valarray---but I have never tried
it out.  The compiler is of excellent quality, and must be one of the
best C++ compilers out there.  It supports virtually everything in the
standard, and has an excellent optimiser, too.

For more information, go to www.kai.com.  Among other information
there, you will find the list of the supported language features as
well as the list of unsupported ones.

Just another happy KCC user...

//lat
--
Lassi.Tuura@cern.ch          There's no sunrise without a night
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: ncm@nospam.cantrip.org (Nathan Myers)
Date: 1998/01/21
Raw View
Peter Nordlund <petern@nada.kth.se> writes:
> Does anyone know where I can find an implementation of the
> valarray class?
> Preferably one that is as close as possible to the standard as
> described in Stroustrup's "The C++ Programming Language (3rd edition)"
> chapter 22.
>
> I haven't seen any compilers providing valarray.

Many of us feel that valarray is not as useful as Blitz++.
See http://monet.uwaterloo.ca/blitz/.

Nathan Myers
ncm@cantrip.org  http://www.cantrip.org/
---
[ comp.std.c++ is moderated.  To submit articles: try just posting with      ]
[ your news-reader.  If that fails, use mailto:std-c++@ncar.ucar.edu         ]
[ FAQ:      http://reality.sgi.com/employees/austern_mti/std-c++/faq.html    ]
[ Policy:   http://reality.sgi.com/employees/austern_mti/std-c++/policy.html ]
[ Comments? mailto:std-c++-request@ncar.ucar.edu                             ]





Author: Peter Nordlund <petern@nada.kth.se>
Date: 1998/01/16
Raw View
Does anyone know where I can find an implementation of the
valarray class?
Preferably one that is as close as possible to the standard as
described in Stroustrup's "The C++ Programming Language (3rd edition)"
chapter 22.

I haven't seen any compilers providing valarray.
I know of the implementation by David Vandevoorde
ftp://ftp.cs.rpi.edu/pub/vandevod/Valarray/

Thanks,
Peter Nordlund
petern@nada.kth.se
---
[ comp.std.c++ is moderated.  To submit articles: Try just posting with your
                newsreader.  If that fails, use mailto:std-c++@ncar.ucar.edu
  comp.std.c++ FAQ: http://reality.sgi.com/austern/std-c++/faq.html
  Moderation policy: http://reality.sgi.com/austern/std-c++/policy.html
  Comments? mailto:std-c++-request@ncar.ucar.edu
]





Author: chris@alofi.etca.fr (Christian Millour)
Date: 1995/07/18
Raw View
Hi all.

I hope this subject has not been beaten to death already...
If this is the case please direct me to useful references.

Seems to me that the template class valarray described in the
WP lacks an assignment operation for valarrays of different
types (e.g. valarray<float> and valarray<int>). Any reason
why such an operator was omitted ? As a workaround, what would
be the most efficient method to perform such an assignment ?

Also, is there any free/GPLed implementation floating around?
(I'm willing to serve as an alpha/beta tester).

TIA,

--chris@etca.fr





Author: vandevod@troi.cs.rpi.edu (David Vandevoorde)
Date: 1995/07/19
Raw View
In article <3ufoa1$g8l@etca.etca.fr>,
Christian Millour <chris@alofi.etca.fr> wrote:
>Hi all.
>
>I hope this subject has not been beaten to death already...
>If this is the case please direct me to useful references.
>
>Seems to me that the template class valarray described in the
>WP lacks an assignment operation for valarrays of different
>types (e.g. valarray<float> and valarray<int>). Any reason
>why such an operator was omitted ? As a workaround, what would
>be the most efficient method to perform such an assignment ?
>
>Also, is there any free/GPLed implementation floating around?
>(I'm willing to serve as an alpha/beta tester).
>
>TIA,
>
>--chris@etca.fr

1) I wrote a "package" (2 files really) that implements something
   that looks quite like valarray... it supports a subset of the
   functionality described in the standard and doesn't stick to
   the letter of that standard to keep efficiency acceptable.

   You'll find this in:
 ftp://ftp.cs.rpi.edu/pub/vandevod/Valarray/Rel1_1
   Noncommercial use is free; contact me for commercial usage.

2) Based on the implementation and usage of this "package" I wrote
   proposal to modify the requirements of "valarray". The paper that
   was submitted to ANSI is in
 ftp://ftp.cs.rpi.edu/pub/vandevod/Valarray/Documents
   Look for files starting with "ansirev.ps". The paper in general
   argues for a more relaxed (but precise!) definition of valarray.

3) In this document, your problem is addressed by proposing a
   template function "val_cast<other_T>(...)" that permits the
   achievement of your proposed assignment in an efficient manner
   on different existing architectures.

4) I have someone working on the implementation of these proposed
   specifications of valarray, but I cannot make promises as to a
   release date.

 Daveed