(Saw a memo here by Mitch Dernis (below) to which this is specifically addressed, but any information or help would be very useful. Many thanks)\
>
> In article 4904@news.cs.brandeis.edu, dernis@binah.cc.brandeis.edu () writes:
> >Hi,
> > This is a fairly simple template question, I hope.
> >I have written a template class, which has been tested and
> >appears to work (mostly at least). Now I tried to use and I
> >have found a problem.
> >
> >The class is a matrix class, and works with all numerical types
> >(I have only tested the two that I need - but presumably).
> >
> >Now I want to declare a function which returns a complex Matrix.
> >
> >So I wrote,
> >
> >Matrix<complex> function();
> >
> >But I discovered a problem immediately, that this interprets this
> >as instance of Matrix<complex>, not a function declaration. It now
> >occurs to me that indeed that is exactly what I have written, and
> >it rightfully complains that I left out the arguments.
> >
> >Does this mean at that I have to template this function too, and do
> >something like:
> >
> >template <class T>
> >void function(Matrix<T>& ref_to_value);
> >
> >Is there a way I can write a function that will return a complex
> >instance of my matrix class without writing the function as a template.
> >The above my be acceptable, even better as it does not generate a
> >temporary, but still. . .
> >
> >Thanks,
> >Mitch Dernis
>
>
>
>
There's a group of research students here at Aston University who are trying to write C++ matrix classes for use in Neural Networks applications. Do you have any examples of code you have written for operations on matrix classes that we might be able to use?
Also, we haven't yet used templates to pass in items of any type to our matrix classes and we do not at present have a c++ compiler to support this.
Could you supply details of compilers for SUN systems which meet the requirements of passing any type into a class? (our systems administrator asked me to mention compilers for Solaris 2.1)