1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798 |
- #include <iostream>
- #include <fstream>
- #include <core/vector/VectorT.h>
- #include <limits>
- using namespace std;
- using namespace NICE;
- template<class ElementType>
- class SparseVectorT : public VectorT<ElementType> {
- size_t dsize;
- public:
- SparseVectorT( const size_t size, const ElementType& element ): VectorT<ElementType>( size, element ) {
- dsize = 5;
- }
- virtual inline size_t size() const {
- return dsize;
- }
- };
- void printit( VectorT<double> &e )
- {
-
- size_t a = 0;
- for ( int i = 0; i < numeric_limits<int>::max(); i++ )
- {
- a = e.size();
- }
- }
- int main( int argc, char **argv )
- {
- VectorT<double> k( 2, 2.0 );
-
-
-
-
- printit( k );
- return 0;
- }
|