Skip to content

what is the gko::remove_complex<ValueType>? #1003

Answered by upsj
ztdepztdep asked this question in Q&A
Discussion options

You must be logged in to vote

This is not a data type, but an alias template that essentially does two things:

  • For value types like double and std::complex<float>, it turns complex types into their underlying type (i.e. std::complex<double> into double), and leaves other types like double unchanged.
  • For template types like Dense<ValueType>, it turns Dense<std::complex<double>> into Dense<double>, i.e. applying remove_complex to the first template parameter.

But I have a general request for you: Please only use issues for things that are broken. If you have a question about Ginkgo, that's perfectly fine, but we use the Q&A discussion section for those. I already moved a few of your issues into the Q&A section.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by upsj
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #1002 on March 26, 2022 15:46.