Commit b0c3233f authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[CHANGE] - added static cast.

parent 4efc810d
......@@ -365,7 +365,7 @@ wmath::WMatrix<double> WSymmetricSphericalHarmonic::calcSmoothingMatrix( size_t
wmath::WMatrix<double> L( R, R );
for ( size_t k = 0; k <= order; k += 2 )
{
for ( int m = -k; m <= static_cast< int >( k ); ++m )
for ( int m = -static_cast< int >( k ); m <= static_cast< int >( k ); ++m )
{
L( i, i ) = static_cast< double > ( k * k * ( k + 1 ) * ( k + 1 ) );
++i;
......@@ -383,7 +383,7 @@ wmath::WMatrix<double> WSymmetricSphericalHarmonic::calcFRTMatrix( size_t order
{
double h = 2.0 * wmath::piDouble * static_cast< double >( std::pow( static_cast< double >( -1 ), static_cast< double >( k / 2 ) ) ) *
static_cast< double >( wmath::oddFactorial( ( k <= 1 ) ? 1 : k - 1 ) ) / static_cast<double>( wmath::evenFactorial( k ) );
for ( int m = -k; m <= static_cast< int >( k ); ++m )
for ( int m = -static_cast< int >( k ); m <= static_cast< int >( k ); ++m )
{
result( i, i ) = h;
++i;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment