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

template based native complex trees #244

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

gitpeterwind
Copy link
Member

@gitpeterwind gitpeterwind commented Apr 25, 2024

Define trees with a template that can be double (default) or ComplexDouble = std::complex.
The template defines the type of the coefficients.
Under development! (compiles, but not yet fully tested)

Everything is put and updated in the FourComponents PR

@gitpeterwind gitpeterwind added the WIP Work In Progress label Apr 25, 2024
@gitpeterwind gitpeterwind removed the WIP Work In Progress label Jul 16, 2024
Copy link
Contributor

Choose a reason for hiding this comment

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

Empty line only :-)

@@ -185,6 +185,20 @@ void math_utils::apply_filter(double *out, double *in, const MatrixXd &filter, i
#endif
}

void math_utils::apply_filter(ComplexDouble *out, ComplexDouble *in, const MatrixXd &filter, int kp1, int kp1_dm1, double fac) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Could you add a bit of documentation to the new functions you have itroduced?

Copy link
Member Author

Choose a reason for hiding this comment

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

will put it in the "FourComponents" PR

@@ -122,6 +122,47 @@ template <int D> void testDifferentiationABGV(double a, double b) {
delete mra;
}

template <int D> void testDifferentiationCplxABGV(double a, double b) {
Copy link
Contributor

Choose a reason for hiding this comment

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

doc :-)

Copy link
Member Author

Choose a reason for hiding this comment

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

Explanation put it in the "FourComponents" PR

Copy link
Contributor

@ilfreddy ilfreddy left a comment

Choose a reason for hiding this comment

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

Seems OK to me but maybe Stig should also have a look.

  1. Some more documentation would help, at least for the new functions
  2. The time-evolution part could at this point be rewritten exploiting the native complex number. But I will ask Evgueni :-)
  3. You should rebase this PR (it should be an easy rebase...)

@ilfreddy ilfreddy requested a review from stigrj August 8, 2024 09:59
@edinvay
Copy link
Contributor

edinvay commented Sep 11, 2024

Seems OK to me but maybe Stig should also have a look.

  1. Some more documentation would help, at least for the new functions
  2. The time-evolution part could at this point be rewritten exploiting the native complex number. But I will ask Evgueni :-)
  3. You should rebase this PR (it should be an easy rebase...)

I cannot pull this branch to my machine to test it (or branch from it)...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants