| 380 | */ |
| 381 | template <class Base> |
| 382 | ublas::matrix_vector_range<FMMatrix<Base> > |
| 383 | diag(FMMatrix<Base>& M, std::size_t n) |
| 384 | { // Return a vector proxy to the first n diagonal elements of M |
| 385 | return ublas::matrix_vector_range<FMMatrix<Base> >(M, ublas::range(0,n), ublas::range(0,n)); |
| 386 | } |
| 387 | |
| 388 | template <class Base> |
| 389 | const ublas::matrix_vector_range<const FMMatrix<Base> > |
no outgoing calls
no test coverage detected