| 72 | typedef gmm::csc_matrix<Scalar> GmmSparse; |
| 73 | typedef gmm::col_matrix< gmm::wsvector<Scalar> > GmmDynSparse; |
| 74 | void eiToGmm(const EigenSparseMatrix& src, GmmSparse& dst) |
| 75 | { |
| 76 | GmmDynSparse tmp(src.rows(), src.cols()); |
| 77 | for (int j=0; j<src.cols(); ++j) |
| 78 | for (EigenSparseMatrix::InnerIterator it(src.derived(), j); it; ++it) |
| 79 | tmp(it.index(),j) = it.value(); |
| 80 | gmm::copy(tmp, dst); |
| 81 | } |
| 82 | #endif |
| 83 | |
| 84 | #ifndef NOMTL |