|
From: | Eugenio Gianniti |
Subject: | Re: [fem-fenics] Function evaluation |
Date: | Thu, 26 Jun 2014 22:46:03 +0000 |
On 26 Jun 2014, at 23:53, Marco Vassallo <address@hidden> wrote:
Yes and no. My first attempt was to just make function inherit from octave_function, hoping it would allow a call like:
U = @u;
but I found out that being a derived class of octave_function is not enough. The syntax you suggest half works, i.e. U gets correctly assigned the @(x, y) u (x,y) “value”, but then trying to use it Octave errors out saying that no indexing operation can
be performed for the function type. Probably what is missing is another subsref, since in octave_base_value there are some five signatures, so tomorrow I will try to get the job done following this path.
Eugenio
|
[Prev in Thread] | Current Thread | [Next in Thread] |