[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: AD matrix operations
From: |
John W. Eaton |
Subject: |
Re: AD matrix operations |
Date: |
Thu, 26 Jan 2017 09:20:14 -0500 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Icedove/45.4.0 |
On 01/26/2017 08:50 AM, Brad Bell wrote:
In python, numpy will provide matrix operations for overloaded types.
This worked for AD matrix operations; see
http://www.seanet.com/~bradbell/pycppad/pycppad.htm
Is there a package, similar to numpy, that works for Octave ?
In Matlab, you can create a function like this (the @double directory
needs to be somewhere in your MATLABPATH):
@double/mtimes.m:
function r = mtimes (x, y)
fprintf ('my mtimes!\n');
r = builtin ('mtimes', x, y);
end
to overload the builtin mtimes function that is called for the syntax "x
* y" when x and y are double precision numeric objects (that includes
sparse and complex). You'd need a separate definition for single.
Is that what you are looking for?
The overloading feature is not yet implemented in Octave for built-in
types like double and single.
jwe
- Re: Algorithmic Differentiation in Octave, Olaf Till, 2017/01/24
- Re: Algorithmic Differentiation in Octave, Richard Crozier, 2017/01/24
- Re: Algorithmic Differentiation in Octave, Brad Bell, 2017/01/24
- Re: Algorithmic Differentiation in Octave, Olaf Till, 2017/01/25
- Re: Algorithmic Differentiation in Octave, Brad Bell, 2017/01/25
- AD matrix operations, Brad Bell, 2017/01/26
- Re: AD matrix operations,
John W. Eaton <=
- Re: AD matrix operations, Brad Bell, 2017/01/26
- Re: AD matrix operations, John W. Eaton, 2017/01/26
- Re: Algorithmic Differentiation in Octave, Brad Bell, 2017/01/27
- Re: Algorithmic Differentiation in Octave, Olaf Till, 2017/01/27
- Re: Algorithmic Differentiation in Octave, Brad Bell, 2017/01/27
- Re: Algorithmic Differentiation in Octave, Olaf Till, 2017/01/27
- Re: Algorithmic Differentiation in Octave, Brad Bell, 2017/01/27
- Re: Algorithmic Differentiation in Octave, Olaf Till, 2017/01/28