Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 512aef61 authored by hhakim's avatar hhakim
Browse files

Update MatGeneric::get_scalar_type_str to be more precise than 'real'...

Update MatGeneric::get_scalar_type_str to be more precise than 'real' specifying 'float' or 'double'.
parent 493daf5b
No related branches found
No related tags found
No related merge requests found
...@@ -156,7 +156,17 @@ std::string Faust::MatGeneric<FPP,DEVICE>::to_string(const bool transpose /* set ...@@ -156,7 +156,17 @@ std::string Faust::MatGeneric<FPP,DEVICE>::to_string(const bool transpose /* set
template<typename FPP, FDevice DEVICE> template<typename FPP, FDevice DEVICE>
std::string Faust::MatGeneric<FPP,DEVICE>::get_scalar_type_str() std::string Faust::MatGeneric<FPP,DEVICE>::get_scalar_type_str()
{ {
return std::is_same<FPP,Real<FPP>>::value?"real":"complex"; std::string type_str;
if (! std::is_same<FPP,Real<FPP>>::value)
type_str = "complex";
else
{
if(std::is_same<FPP, float>::value)
type_str = "float";
else
type_str = "double";
}
return type_str;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment