29 #ifndef __SPARSEMATRIX_HPP
30 #define __SPARSEMATRIX_HPP
33 # pragma GCC system_header
37 #include "allocator.h"
57 int _maxEntriesPerRow;
74 void Resize(
int rows ,
int maxEntriesPerRow );
109 bool write( FILE* fp )
const;
110 bool write(
const char* fileName )
const;
111 bool read( FILE* fp );
112 bool read(
const char* fileName );
125 if( _dim )
for(
int t=0 ; t<int(
out.size()) ; t++ )
delete[]
out[t];
133 if( threads!=
out.size() || _dim<dim )
135 for(
int t=0 ; t<int(
out.size()) ; t++ )
delete[]
out[t];
136 out.resize( threads );
137 for(
int t=0 ; t<int(
out.size()) ; t++ )
out[t] =
new T2[dim];
169 #if defined _WIN32 && !defined __MINGW32__
172 #endif // _WIN32 || __MINGW32__
185 #include "sparse_matrix.hpp"