-
Notifications
You must be signed in to change notification settings - Fork 43
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Proposition to create a complex matrix class #2835
Conversation
Signed-off-by: JB-H <jbheyberger@gmail.com>
Signed-off-by: JB-H <jbheyberger@gmail.com>
Signed-off-by: JB-H <jbheyberger@gmail.com>
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 1 New issue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just small comments/corrections.
} | ||
|
||
public static DenseMatrix getFortescueOrInverseMatrix(boolean isInverse) { | ||
DenseMatrix mFortescueOrInverse = new DenseMatrix(6, 6); | ||
public static ComplexMatrix createComplexMatrix(boolean isInverse) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe just inverse
here for the boolean name.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
double t22 = realMatrix.get(rowIndexInCartesian + 1, colIndexInCartesian + 1); | ||
|
||
double epsilon = 0.00000001; | ||
if (FastMath.abs(t11 - t22) > epsilon) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These two if bloc can be shared, and with the first exception of your method, you can introduce a string variable for exception message.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Quality Gate passedIssues Measures |
Please check if the PR fulfills these requirements
Does this PR already have an issue describing the problem?
What kind of change does this PR introduce?
It is a new feature
What is the current behavior?
What is the new behavior (if this is a feature change)?
complex matrix handled and used to generate Fortescue matrices
Does this PR introduce a breaking change or deprecate an API?
If yes, please check if the following requirements are fulfilled
What changes might users need to make in their application due to this PR? (migration steps)
Other information: