Skip to content
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

Merged
merged 8 commits into from
May 7, 2024
Merged

Proposition to create a complex matrix class #2835

merged 8 commits into from
May 7, 2024

Conversation

JB-H
Copy link
Contributor

@JB-H JB-H commented Dec 14, 2023

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

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?

  • Yes
  • No

If yes, please check if the following requirements are fulfilled

  • The Breaking Change or Deprecated label has been added
  • The migration steps are described in the following section

What changes might users need to make in their application due to this PR? (migration steps)

Other information:

JB-H added 3 commits December 14, 2023 23:17
Signed-off-by: JB-H <jbheyberger@gmail.com>
Signed-off-by: JB-H <jbheyberger@gmail.com>
Signed-off-by: JB-H <jbheyberger@gmail.com>
Copy link

Quality Gate Passed Quality Gate passed

The SonarCloud Quality Gate passed, but some issues were introduced.

1 New issue
0 Security Hotspots
88.1% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

@JB-H JB-H requested a review from geofjamg January 16, 2024 21:30
@JB-H JB-H requested a review from annetill May 3, 2024 19:09
Copy link
Member

@annetill annetill left a 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) {
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

math/pom.xml Outdated Show resolved Hide resolved
double t22 = realMatrix.get(rowIndexInCartesian + 1, colIndexInCartesian + 1);

double epsilon = 0.00000001;
if (FastMath.abs(t11 - t22) > epsilon) {
Copy link
Member

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

geofjamg added 2 commits May 6, 2024 14:30
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
geofjamg added 2 commits May 6, 2024 14:40
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Copy link
Member

@annetill annetill left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@annetill annetill changed the title proposition to create a complex matrix class Proposition to create a complex matrix class May 6, 2024
Signed-off-by: Geoffroy Jamgotchian <geoffroy.jamgotchian@rte-france.com>
Copy link

sonarqubecloud bot commented May 6, 2024

@annetill annetill merged commit f8ef9c6 into main May 7, 2024
6 checks passed
@annetill annetill deleted the ComplexMatrix branch May 7, 2024 13:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants