Template Function MatrixTools::matrixTo

Function Documentation

template<class ToMatrix, class FromMatrix>
ToMatrix MatrixTools::matrixTo(const FromMatrix &other)

Converts the other matrix into a equivalent matrix of the template parametrized type.

Parameters:

other – The input Matrix.

Returns:

Matrix of type DenseMatrix, CSRMatrix or DynamicMatrix.