[ https://issues.apache.org/jira/browse/MATH569?page=com.atlassian.jira.plugin.system.issuetabpanels:commenttabpanel&focusedCommentId=13030849#comment13030849
]
Phil Steitz commented on MATH569:

negate() is OK, could be added wlog.
Regarding the others, note that a) real fields are not going to be closed under sqrt() (so
Dfp, for example, can't support this) and b) pow(.,.) requires some significant extraalgebraic
structure to be meaningful. If you want all of this structure, then what you are really looking
for is an algebraically closed field with exp  i.e. Complex. So the natural thing to do
is to extract a ComplexFieldElement interface, assuming this is really needed. What exactly
are the use cases served by this? To make it easier to implement decomposition algorithms
for both real and complex fields? They can't rely on sqrt() if applied to real fields.
> 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
