[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [fem-fenics] interpolate
From: |
c. |
Subject: |
Re: [fem-fenics] interpolate |
Date: |
Mon, 19 May 2014 18:22:58 +0200 |
On 19 May 2014, at 18:07, Eugenio Gianniti <address@hidden> wrote:
> According to this I should probably leave the interface as it is for
> compatibility with the Octave standard. Currently interpolate uses the
> Function, which in your example is object, just as “vector” of the
> information about the function space, then the interpolated result is
> returned.
> Could it be better to modify the function in order to make it work in a
> really object oriented fashion, I mean saving the result of the interpolation
> in what we called object?
What you mean exactly by "would be better"?
More efficient? More intuitive? Closer to the Python interface?
In the current version of Octave the standard syntax
for this kind of operation is of the form:
object = class_method (object, method_arguments)
If you don't like this you should work on the bleeding edge
development version of Octave which implements "classdef"
style OOP.
This would mean your code would be compatible
with Octave 4.2+ only.
c.
- Re: [fem-fenics] interpolate, (continued)
Re: [fem-fenics] interpolate, Marco Vassallo, 2014/05/19
Re: [fem-fenics] interpolate, Eugenio Gianniti, 2014/05/19
Re: [fem-fenics] interpolate, Marco Vassallo, 2014/05/19
Re: [fem-fenics] interpolate, Eugenio Gianniti, 2014/05/19
Re: [fem-fenics] interpolate, Marco Vassallo, 2014/05/19
Re: [fem-fenics] interpolate, Eugenio Gianniti, 2014/05/19
Re: [fem-fenics] interpolate, Eugenio Gianniti, 2014/05/21
Re: [fem-fenics] interpolate, Marco Vassallo, 2014/05/21