🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: sci.math.num-analysis
Article #346

Re: Advice wanted for using C++ in Numerical Analysis

#346
From: Michael C. Grant
Date: Wed, 26 Aug 1992 11:29
30 lines
1934 bytes
In article <BtKpKz.M3F@netnews.jhuapl.edu>
pwm@netnews.jhuapl.edu (Miller Phil F1E x8335 ) writes:

    Also I would like some advice on the best way to learn
   C++ and object oriented programming with numerical
   simulation in mind.

I see that other posters have recommended books for learning C++, so I
won't repeat them here.

I wanted to tell you, however, that I've been using C++ to design an
object-oriented approach to constrained optimziation and it's been working
beautifully. I can write a class to exploit the special structure of a
particular constraint function, and my optimization engine doesn't have to
change one bit, because the internal stucture of the constraint is hidden
from it. On the other hand, I can write different classes to exploit
different optimization techniques, and similarly the constraint code does
not need to change.

My code is extremely modular, easy to maintain, and optimized for speed
all at the same time (if I do say so myself :-)

Of course, object-oriented programming is not a complete solution to
numerical programming. As a matter of fact, I use the FORTRAN LAPACK
functions for my matrix algebra, because it suits my particular
application. There are some excellent matrix classes out there, though, as
others have recommended. I have tried out M++ from Dyad, for example, and
it's quite nice.

Mike
Technical Details
Message-ID: <MCGRANT.92Aug26112931@rascals.stanford.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!EE.Stanford.EDU!sierra!mcgrant
References: <BtKpKz.M3F@netnews.jhuapl.edu>

Show Full Headers
Complete Article Headers
Newsgroups: sci.math.num-analysis
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!EE.Stanford.EDU!sierra!mcgrant
From: mcgrant@rascals.stanford.edu (Michael C. Grant)
Subject: Re: Advice wanted for using C++ in Numerical Analysis
In-Reply-To: pwm@netnews.jhuapl.edu's message of Wed, 26 Aug 1992 04:24:35 GMT
Message-ID: <MCGRANT.92Aug26112931@rascals.stanford.edu>
Sender: usenet@EE.Stanford.EDU (Usenet)
Organization: Information Systems Laboratory, Stanford University
References: <BtKpKz.M3F@netnews.jhuapl.edu>
Date: 26 Aug 92 11:29:31
Lines: 30