Skip to content

Commit 29ffd96

Browse files
committed
Use the real type of the matrix for the vector
1 parent 42eba2a commit 29ffd96

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

bindings/Modules/src/SofaPython3/SofaLinearSystem/Binding_LinearSystem.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ template<class TBlock>
6060
void bindLinearSystems(py::module &m)
6161
{
6262
using CRS = sofa::linearalgebra::CompressedRowSparseMatrix<TBlock>;
63-
using CRSLinearSystem = sofa::component::linearsystem::TypedMatrixLinearSystem<CRS, sofa::linearalgebra::FullVector<SReal> >;
63+
using Real = typename CRS::Real;
64+
using CRSLinearSystem = sofa::component::linearsystem::TypedMatrixLinearSystem<CRS, sofa::linearalgebra::FullVector<Real> >;
6465

6566
const std::string typeName = CRSLinearSystem::GetClass()->className + CRSLinearSystem::GetCustomTemplateName();
6667

0 commit comments

Comments
 (0)