| 160 | |
| 161 | template<class R> |
| 162 | void DefSolver(Stack stack, VirtualMatrix<int,R> & A,const Data_Sparse_Solver & ds) |
| 163 | { |
| 164 | typename VirtualMatrix<int,R>::VSolver * solver=0; |
| 165 | HashMatrix<int,R>* AH(dynamic_cast<HashMatrix<int,R> *>(&A)); |
| 166 | ffassert(AH); |
| 167 | |
| 168 | solver = NewVSolver<int,R>(*AH,ds,stack); |
| 169 | |
| 170 | if(solver) |
| 171 | A.SetSolver(solver,true); |
| 172 | else |
| 173 | CompileError("SetSolver: type resolution unknown"); |
| 174 | |
| 175 | |
| 176 | } |
| 177 | |
| 178 | typedef double R; |
| 179 | typedef complex<double> C; |
no test coverage detected