octave-maintainers
[Top][All Lists]
Advanced

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

Re: Partial list of missing NDArray functionality


From: Alois Schloegl
Subject: Re: Partial list of missing NDArray functionality
Date: Tue, 30 Mar 2004 11:36:42 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)


Hi David,

Please add also the following functions to your (partial) list,
REPMAT.M

From your list, the following functions are available in octave-forge/extra/NaN/
mod
rem
std
var
median

as well as a few others like
normpdf
normcdf
norminv
meandev
moment
mad
skewness
kurtosis
center
zscore
harmmean
geomean
trimean
tpdf
tcdf
tinv


Regards,
  Alois


David Bateman wrote:

Looking into missing NDArray functions compared to matlab in 2.1.57
(not including min/max and filter which I've converted) I've compiled
the following partial list
b = unwrap(a);
b = cplxpair(a);
b = mod(a,2);
b = rem(a,2);
b = airy(a);
b = besselj(1,a);
b = bessely(1,a);
b = besselh(1,a);
b = besseli(1,a);
b = besselk(1,a);
b = betainc(2,a,a);
b = erfinv(a);
b = gammainc(2,a);
b = legendre(0,a);
b = std(a);
b = var(a)
b = median(a);
b = convn(a,a);          % Doesn't exist
b = sort(a);
b = fftshift(a);
b = ifftshift(a);

%% This one might be a bug in matlab...
b = nextpow2(a);

%% Are these really N-D array issues
b = delaunayn(??);       % Doesn't exist
b = interp3(??);         % Doesn't exist
b = interpn(??);         % Doesn't exist
b = griddata3(??);       % Doesn't exist
b = griddatan(??);       % Doesn't exist

Some of these functions are in octave-forge and some aren't strictly
NDArray issues. For example "nextpow2" treats matrix and NDArray args
as "nextpow2(length(x))" in matlab, whereas octave just crashes with
an error if the arg isn't a scalar or a vector. Perhaps we should not
do bug for bug compatiability of this one.

However, most of the functions above are missing NDArray functionality.
There are probably other functions as well.
Note that this e-mail is not a criticism, as there are an amazing
number of functions already converted to be NDArray aware. But rather
a list of things to do for those that are interested. If you know of
any other functions to convert perhaps you can add them to the list.

Regards
David




reply via email to

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