[CHANGESET]: First attempt at a single precision type.

David Bateman adb014 at gmail.com
Wed Apr 30 16:18:42 CDT 2008


John W. Eaton wrote:
> On 30-Apr-2008, John W. Eaton wrote:
> 
> | Did you mean to write this as
> | 
> |   ComplexMatrix ComplexMatrix::stack (const Matrix&) const
> |   {
> |     return MArray2<ComplexMatrix>::stack (a);
> |   }
> | 
> | in the ComplexMatrix class?
> 
> Oops, I meant "MArray2<complex>::stack (a)".

Or even "MArray2<Complex>::stack(a)", sorry the fault was only in the
e-mail not in what I implemented.. Thinking about the problem is
probably that the template needs to be instantiated somewhere, though I
thought the call to the templated method should have done that itself..
I think I see in any case why these functions haven't been templated in
the past :-)

D.



More information about the Octave-maintainers mailing list