Skip to content
Snippets Groups Projects
Commit 5060e57b authored by Ansgar Burchardt's avatar Ansgar Burchardt
Browse files

Merge branch 'cleanup/remove-to_real' into 'master'

remove private `to_real` member function

See merge request !150
parents b4ce44b7 581d3afe
No related branches found
No related tags found
1 merge request!150remove private `to_real` member function
Pipeline #
......@@ -944,19 +944,6 @@ namespace Dune {
private:
// helper function to extract the real value of a real or complex number
inline
real_type to_real(const real_type & v)
{
return v;
}
inline
real_type to_real(const std::complex<real_type> & v)
{
return v.real();
}
void generateGivensRotation(field_type &dx, field_type &dy, real_type &cs, field_type &sn)
{
using std::sqrt;
......@@ -1265,19 +1252,6 @@ namespace Dune {
return conj(t);
}
// helper function to extract the real value of a real or complex number
inline
real_type to_real(const real_type & v)
{
return v;
}
inline
real_type to_real(const std::complex<real_type> & v)
{
return v.real();
}
void
generatePlaneRotation(field_type &dx, field_type &dy, real_type &cs, field_type &sn)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment