what is the gko::remove_complex<ValueType>? #1003
Answered
by
upsj
ztdepztdep
asked this question in
Q&A
-
I have noticed that there is a data type gko::remove_complex, could you pleaes provide some infors about this type? |
Beta Was this translation helpful? Give feedback.
Answered by
upsj
Mar 26, 2022
Replies: 1 comment
-
This is not a data type, but an alias template that essentially does two things:
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. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
upsj
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is not a data type, but an alias template that essentially does two things:
double
andstd::complex<float>
, it turns complex types into their underlying type (i.e.std::complex<double>
intodouble
), and leaves other types likedouble
unchanged.Dense<ValueType>
, it turnsDense<std::complex<double>>
intoDense<double>
, i.e. applyingremove_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.