[ https://issues.apache.org/jira/browse/MATH569?page=com.atlassian.jira.plugin.system.issuetabpanels:commenttabpanel&focusedCommentId=13031070#comment13031070
]
Arne Plöse commented on MATH569:

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: MATH569
> URL: https://issues.apache.org/jira/browse/MATH569
> 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: http://www.atlassian.com/software/jira
