[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Implementing categorial function
From: |
NVS Abhilash |
Subject: |
Re: Implementing categorial function |
Date: |
Mon, 21 Nov 2016 22:57:27 -0800 (PST) |
Mike Miller-4 wrote
> On Sun, Nov 20, 2016 at 20:59:21 -0800, NVS Abhilash wrote:
>> I would want you to clarify on this, as of now as I see I don't find
>> anything about categorical data type in octave source.
>
> Correct, the categorical function / class constructor would define that
> type.
>
>> Does it mean I got to implement the whole datatype and its related
>> functions. I think to provide support for a new datatype, many of the
>> preexisting functions need to be modified too.
>
> No, Octave functions overload based on the argument type. Please have a
> look at the docs on object oriented programming in Octave. There is a
> simple example in the Octave source tree at examples/code/@polynomial.
>
> You could look at the quaternion or symbolic packages for more complex
> examples of custom types that overload built-in functions.
>
> --
> mike
Thank you for your reply,
So I guess start implementing these.
Also I guess first step would be to actually implement the data type and the
functions associated with it. Then we should look for compatibility with
other functions?
Thanks,
NVS
-----
NVS Abhilash
--
View this message in context:
http://octave.1599824.n4.nabble.com/Implementing-categorial-function-tp4680686p4680714.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
- Implementing categorial function, NVS Abhilash, 2016/11/20
- Re: Implementing categorial function, Mike Miller, 2016/11/20
- Re: Implementing categorial function,
NVS Abhilash <=
- Re: Implementing categorial function, Mike Miller, 2016/11/22
- Re: Implementing categorial function, NVS Abhilash, 2016/11/23
- Re: Implementing categorial function, Mike Miller, 2016/11/23
- Re: Implementing categorial function, NVS Abhilash, 2016/11/26
- Re: Implementing categorial function, Mike Miller, 2016/11/26