| 331 | class TCreateSymMatObjectS { |
| 332 | public: |
| 333 | static Base * Create (int dim, bool iscomplex, ARG & ... arg) |
| 334 | { |
| 335 | if (dim == ACTDIM) |
| 336 | { |
| 337 | if (iscomplex) |
| 338 | return new Object<Mat<ACTDIM,ACTDIM,Complex> > (arg...); |
| 339 | else |
| 340 | return new Object<Mat<ACTDIM,ACTDIM,double> > (arg...); |
| 341 | } |
| 342 | else return TCreateSymMatObjectS<Object, Base, ACTDIM-1, ARG...>::Create(dim, iscomplex, arg...); |
| 343 | } |
| 344 | }; |
| 345 | |
| 346 | template <template <typename...T> class Object, class Base, typename ... ARG> |