[Top][All Lists]

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

Re: no way for simple matrix lookup ?

From: Julius Smith
Subject: Re: no way for simple matrix lookup ?
Date: Fri, 18 Jun 2004 13:46:51 -0700

Right --- what price simplicity?
Of course, the parser could also evaluate arguments of diag() with some optimization.
-- jos

At 11:42 AM 6/18/2004, Mike Miller wrote:
On Fri, 18 Jun 2004, Julius Smith wrote:

Oops - I meant diag(A(b',c)) of course -- jos

I think the problem with that solution is that if b and c have length, say, 10,000, you have to produce a matrix A with 100,000,000 elements, then use diag() to discard 99,990,000 of them because they were not needed.


Michael B. Miller, Ph.D.
Assistant Professor
Division of Epidemiology
and Institute of Human Genetics
University of Minnesota

Julius O. Smith III <address@hidden>
Assoc. Prof. of Music and (by courtesy) Electrical Engineering
CCRMA, Stanford University

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

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