Thread View: comp.std.c++
3 messages
3 total messages
Started by Jens Bloch Helmers
Tue, 29 Aug 1995 15:11
Std. c++ for number crunching.
Author: Jens Bloch Helmers
Date: Tue, 29 Aug 1995 15:11
Date: Tue, 29 Aug 1995 15:11
17 lines
1071 bytes
1071 bytes
Has the committee considered to include standardized math libraries? (Linear Algebra, mathematical functions etc.) Does Std. c++ introduce features which make it easier for a compiler to exploit parallel processing? (Like the new array syntax improves Fortran) Will ISO/ANSI c++ catch up with Fortran 95 and HPF when it comes to features for number crunching? Please say: yes, yes yes! Jens Bloch Helmers. [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Re: Std. c++ for number crunching.
Author: David Vandevoorde
Date: Tue, 29 Aug 1995 18:17
Date: Tue, 29 Aug 1995 18:17
56 lines
2570 bytes
2570 bytes
>>>>> "JH" == Jens Bloch Helmers <helm@dhow.vr.dnv.no> writes: In article <9508291233.AA14795@dhow.vr.dnv.no> helm@dhow.vr.dnv.no (Jens Bloch Helmers) writes: JH> Has the committee considered to include standardized math JH> libraries? (Linear Algebra, mathematical functions etc.) Apart from the <math.h> header already present in C, the following were added: . most of the <math.h> functions are extended to also support float & long arguments (now: <cmath>). . a complex number type through the header <complex> (which extends most of the <cmath> functions to complex numbers) . an array for ``many-at-a-time'' computing: <valarray> . a few applciators and reductors for ``STL-like'' containers Note that little ``linear algebra'' is included: that is left to third parties... but the given toold provide a reasonable basis to build on... or will eventually do so :-P JH> Does Std. c++ introduce features which make it easier JH> for a compiler to exploit parallel processing? JH> (Like the new array syntax improves Fortran) The <valarray> header has potential for this... check out: ftp://ftp.cs.rpi.edu/pub/vandevod/Valarray for a few documents and implementation attempts. (Valarray is my pet project these days :) JH> Will ISO/ANSI c++ catch up with Fortran 95 and HPF when it JH> comes to features for number crunching? I believe: partly. The basics will be provided and should be enough for third-parties to build more powerful classes with excellent efficiency. I think the main problem remaining is the lack of a mechanism to specify absence of aliasing. JH> Please say: yes, yes yes! Maybe, maybe, maybe! JH> Jens Bloch Helmers. Daveed [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Re: Std. c++ for number crunching.
Author: Matt Austern
Date: Tue, 29 Aug 1995 19:03
Date: Tue, 29 Aug 1995 19:03
47 lines
2908 bytes
2908 bytes
Distribution: In article <9508291233.AA14795@dhow.vr.dnv.no> helm@dhow.vr.dnv.no (Jens Bloch Helmers) writes: > Has the committee considered to include standardized math > libraries? (Linear Algebra, mathematical functions etc.) > > Does Std. c++ introduce features which make it easier > for a compiler to exploit parallel processing? > (Like the new array syntax improves Fortran) Yes and no. The draft standard does include a number of features that are of interest to people who do numerical programming (see, in particular, chapter 26, which describes the Numerics Library), but it is not as extensive as what you get in Fortran and there are still some major omissions. First, a brief summary of what the standard does include: complex numbers, the basic transcendental functions (for both real and complex arguments), methods of getting access to low-level details of the machine's representation of floating-point numbers, one-dimensional arrays of numeric types that are designed for easy vectorization, a rather extensive set of operations and auxiliary classes dealing with slices of those arrays, and generalized numeric operations on ordinary STL containers. Some of the main things that the standard does not include are libraries for specialized fields of numerical analysis (linear algebra, optimization, integration and quadrature, FFTs, etc.) and multidimensional arrays. My own opinion is that it's appropriate to leave out the specialized libraries, since it would be too hard to provide a standard that met everyone's needs. I regard the lack of a standard multidimensional array class, though, as an unfortunate omission. valarray<T> (and the associated auxiliary classes) provides a lot of the building blocks you need to write multidimensional arrays yourself, but that's no real substitute for a standardized class. This omission will make it harder to write portable programs. -- Matt Austern He showed his lower teeth. "We matt@physics.berkeley.edu all have flaws," he said, "and http://dogbert.lbl.gov/~matt mine is being wicked." --- [ comp.std.c++ is moderated. Submission address: std-c++@ncar.ucar.edu. Contact address: std-c++-request@ncar.ucar.edu. The moderation policy is summarized in http://dogbert.lbl.gov/~matt/std-c++/policy.html. ]
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads