mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-01-30 17:40:05 +08:00
Make index type of Triplet default to SparseMatrix::Index as suggested by Kolja Brix. Fixes bug #665.
This commit is contained in:
parent
b433fb2857
commit
4a42843513
@ -143,7 +143,7 @@ template<typename T> struct plain_matrix_type<T,Sparse>
|
||||
*
|
||||
* \sa SparseMatrix::setFromTriplets()
|
||||
*/
|
||||
template<typename Scalar, typename Index=unsigned int>
|
||||
template<typename Scalar, typename Index=typename SparseMatrix<Scalar>::Index >
|
||||
class Triplet
|
||||
{
|
||||
public:
|
||||
|
Loading…
Reference in New Issue
Block a user