MCPcopy Create free account
hub / github.com/avaneev/biteopt / CRotMatCacheItem

Class CRotMatCacheItem

tests/tester.h:992–1016  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990 */
991
992 struct CRotMatCacheItem
993 {
994 static const int EntryCount = 2048; ///< The number of cache entries.
995 int Dims; ///< Dimension count.
996 double* rmbuf[ EntryCount ]; ///< Rotation matrix buffer pointers.
997 double** rm[ EntryCount ]; ///< Row-wise rotation matrices pointers.
998
999 CRotMatCacheItem()
1000 : Dims( 0 )
1001 {
1002 memset( rmbuf, 0, sizeof( rmbuf ));
1003 memset( rm, 0, sizeof( rm ));
1004 }
1005
1006 ~CRotMatCacheItem()
1007 {
1008 int i;
1009
1010 for( i = 0; i < EntryCount; i++ )
1011 {
1012 delete[] rmbuf[ i ];
1013 delete[] rm[ i ];
1014 }
1015 }
1016 };
1017
1018 static const int RMCacheSize = 8; ///< The maximal number of different
1019 ///< dimensionalities supported by cache in the same run.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected