help-octave
[Top][All Lists]
Advanced

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

Re: MacOSX: Octave.app 2.9.14


From: Dmitri A. Sergatskov
Subject: Re: MacOSX: Octave.app 2.9.14
Date: Sun, 30 Sep 2007 22:31:14 -0500

Another speedup can be done if we make a norm (x,1) a special case,
so instead of calculating:

octave:29> tic; sum((abs(x) .^1))^1 ; toc
Elapsed time is 0.174812 seconds.

We can simply calculate:

octave:30> tic; sum((abs(x))) ; toc
Elapsed time is 0.080658 seconds.

Sincerely,

Dmitri.
--


reply via email to

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