octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Class of User Types [Was: Moving code from octave-forge to octave [W


From: John W. Eaton
Subject: Re: Class of User Types [Was: Moving code from octave-forge to octave [Was: polyderiv problem?]]
Date: Fri, 25 Feb 2005 09:59:09 -0500

On 25-Feb-2005, Paul Kienzle <address@hidden> wrote:

| I was thinking:
| 
|     z = zeros(4,4,class(X));
|     for i=1:columns(X), z(1:i,:) = X(1:i,:); end
| 
| so z would already be known to be a galois type but with an 
| indeterminate
| field.

I'm not sure I understand all of the discussion, but doesn't repamt
do what you want for creating an array of the right size and type?
The current implementation might not be right for all derived types,
but I think it is the function to use here.

jwe



reply via email to

[Prev in Thread] Current Thread [Next in Thread]