[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Calling sqrt() in a dynamic function
From: |
Paul Kienzle |
Subject: |
Re: Calling sqrt() in a dynamic function |
Date: |
Tue, 10 Feb 2004 20:32:37 -0500 |
Do you want element-wise sqrt? Or do you want to find B such
that B*B = A for some matrix A?
The latter is available in src/DLD-FUNCTIONS/sqrtm.cc. You
could probably move it into liboctave leaving just the shell
in sqrtm.cc, sending a patch to John when you do. Otherwise,
the only way you will be able to access it is via feval.
The former is defined in mappers.cc. I don't know if it is
possible to use a mapper directly from an oct-file. Let us
know (e.g., on wiki.octave.org) if you succeed.
Paul Kienzle
address@hidden
On Feb 10, 2004, at 12:29 PM, Thomas Weber wrote:
Hi,
is there a way to call sqrt(X) (X a real matrix) from an .oct-file
without using feval?
I've grepped through the sources, but I am unable to find the
definition
of sqrt() for matrix arguments.
Best regards
Thomas
P.S. Please don't cc me, I'm subscribed to the list.
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------
-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.
Octave's home on the web: http://www.octave.org
How to fund new projects: http://www.octave.org/funding.html
Subscription information: http://www.octave.org/archive.html
-------------------------------------------------------------