[Top][All Lists]

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

shape of x(y)

From: Andy Adler
Subject: shape of x(y)
Date: Tue, 1 Aug 2000 21:57:29 -0400 (EDT)

I'm trying to figure out the rules
octave uses for index expressions of type: x(y)

They seems to be quite complicated, this
is what I could figure out.

  x is matrix: result is same shape as y
  x is vector: result is same orientation as x
  x is scalar: result is column orientation

Is this correct? I need to know so that I can
make the sparse functions do the same thing
as the current "full" matrix rules.

Additionally, I find these rules unecessarily
complicated. Wouln't a rule like:
  result is same shape as y
work in all cases?

Or this this another example of bug-for-bug
MATLAB compatibility?

Andy Adler,                address@hidden

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]