BZDEV: FW: Blitz and Metrowerks

From: David Oberst (oberst@stats.gov.nt.ca)
Date: Thu Jun 03 1999 - 02:11:27 EST


Anyone out there trying to port Blitz to Metrowerks? I sent this to
"tveldhui@oonumerics.org" last week, and thought I'd post it here.
Still haven't had a chance to try and create a "config.h" file to compile
Blitz with.
===============
I'm soon going to be rewriting an economic modelling program which I
originally did in Pascal. I'm looking for an existing array/matrix library
to handle storage and simple manipulations. The system has a two or three
large (679 by 231) float or double arrays. I only need the simplest math
routines - add, subtract, multiply, invert, row and column sums, pulling out
rows or column subsets, etc (I'm NOT a mathematician!). Since the arrays
(at least for the NWT) are full of rows and columns of zeroes, some sort of
sparse storage would also be nice. I was taking a look at Blitz, and
noticed that it didn't yet support the Metrowerks compiler (we are using
Metrowerks on Macintosh). The reason given was "doesn't support member
templates outside class declarations". I'm testing the upcoming Metrowerks
CW5 release (due in June, currently in beta) and the very first item in the
C++ release notes is:

* A member function template can now be defined outside it's class
definition

  template<class T> class foo {
  public:
   template<class U> U bar(U);
  };
  template<class T> template<class U> U foo<T>::bar(U arg)
  {
   return arg+1;
  }

The new CW5 compiler seems to pass the 4 mini-tests on the "blitz/platforms"
page on the website. I'll try and run the test programs, but of course on a
Mac I can't run BZconfig to create config.h. I'll try and manually put this
together the defines in this file, but I just wanted to make sure that noone
else has already done this.

If you have any other suggestions as to suitable libraries, please pass them
along. There also seems to be MTL (from the LSC group at Notre Dame), and
one or two others I've found so far.

--

David Oberst/NWT Bureau of Statistics/Yellowknife, NWT, Canada oberst@stats.gov.nt.ca [Explore Canada's Arctic]

--------------------- blitz-dev list -------------------------------- * To subscribe/unsubscribe: use the handy web form at http://oonumerics.org/blitz/lists.html



This archive was generated by hypermail 2b29 : Wed Feb 20 2002 - 04:30:10 EST