X-Git-Url: https://git.creatis.insa-lyon.fr/pubgit/?a=blobdiff_plain;f=lib%2FcpExtensions%2FAlgorithms%2FKalmanFilter.hxx;fp=lib%2FcpExtensions%2FAlgorithms%2FKalmanFilter.hxx;h=0000000000000000000000000000000000000000;hb=2e142df11d6f312a2a2b5097b8da73571ed523e8;hp=e81cae27edb84f8f1ba7fbbf3a33a91f403857af;hpb=61b3659afe961ed248f30e26f9ca8f28fcfafddc;p=cpPlugins.git diff --git a/lib/cpExtensions/Algorithms/KalmanFilter.hxx b/lib/cpExtensions/Algorithms/KalmanFilter.hxx deleted file mode 100644 index e81cae2..0000000 --- a/lib/cpExtensions/Algorithms/KalmanFilter.hxx +++ /dev/null @@ -1,37 +0,0 @@ -#ifndef __CPEXTENSIONS__ALGORITHMS__KALMANFILTER__HXX__ -#define __CPEXTENSIONS__ALGORITHMS__KALMANFILTER__HXX__ - -// ------------------------------------------------------------------------- -template< typename T > -template< class M > -void cpExtensions::Algorithms::KalmanFilter< T >:: -Kronecker( M& AkB, const M& A, const M& B ) -{ - unsigned int m = A.rows( ); unsigned int n = A.cols( ); - unsigned int p = B.rows( ); unsigned int q = B.cols( ); - AkB.set_size( m * p, n * q ); - - for( unsigned int i = 1; i <= m; ++i ) - { - for( unsigned int j = 1; j <= n; ++j ) - { - for( unsigned int k = 1; k <= p; ++k ) - { - for( unsigned int l = 1; l <= q; ++l ) - { - unsigned int al = ( ( p * ( i - 1 ) ) + k ) - 1; - unsigned int be = ( ( q * ( j - 1 ) ) + l ) - 1; - AkB[ al ][ be ] = A[ i - 1 ][ j - 1 ] * B[ k - 1 ][ l - 1 ]; - - } // rof - - } // rof - - } // rof - - } // rof -} - -#endif // __CPEXTENSIONS__ALGORITHMS__KALMANFILTER__HXX__ - -// eof - $RCSfile$