Commit 94419257 authored by Stéphane Adjemian's avatar Stéphane Adjemian

Fixed for octave.

parent 557630ca
......@@ -32,7 +32,11 @@ o = copy(varargin{1});
if nargin<2
o.cumprod_();
else
o.cumprod_(varargin{2:end});
if isoctave
o = cumprod_(o, varargin{2:end});
else
o.cumprod_(varargin{2:end});
end
end
%@test:1
......
......@@ -32,7 +32,11 @@ o = copy(varargin{1});
if nargin<2
o.cumsum_();
else
o.cumsum_(varargin{2:end});
if isoctave()
o = cumsum_(o, varargin{2:end});
else
o.cumsum_(varargin{2:end});
end
end
%@test:1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment