commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arne Plöse (JIRA) <>
Subject [jira] [Commented] (MATH-569) Add more operators to FieldElement<T>
Date Tue, 10 May 2011 07:16:03 GMT


Arne Plöse commented on MATH-569:

Ok i try to build a small DSP library, where i need to create some digital filters.
Having the octave code for this, they make use of complex vectors to calculate the parameters
of the filter.

There are several possibilities to solve this problem:

1. Create an own Complex vector | matrix and copy code around...
2. extend FieldVector and ArrayFieldVector; problem all methods return a real ArrayFieldVector
so I must recreate my ComplexVector every time.
3. add missing operators to FieldElement and Fieldvector and implementing classes.
  What is the point to simply throw a NotSupportedException if an operation is not supported?

> Add more operators to FieldElement<T>
> -------------------------------------
>                 Key: MATH-569
>                 URL:
>             Project: Commons Math
>          Issue Type: Improvement
>    Affects Versions: 3.0
>            Reporter: Arne Plöse
>            Priority: Minor
> it would be nice to have some additional operators in FieldElement i.e.
>     T negate();
>     T pow(T x);
>     T sqrt();
> maybe the double variant i.e.
>     T pow(double x);
> as well.
> This would be affect FieldVector | Matrix, BigReal, ... as well.

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message