From 4f1fc4c66177c9198673d7b66050565d00ee0967 Mon Sep 17 00:00:00 2001
From: Mathieu Faverge <mathieu.faverge@inria.fr>
Date: Thu, 10 Dec 2020 15:31:48 +0100
Subject: [PATCH] Add missing init function in python

---
 wrappers/python/spm/spm.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/wrappers/python/spm/spm.py b/wrappers/python/spm/spm.py
index 199fa781..d33b92aa 100644
--- a/wrappers/python/spm/spm.py
+++ b/wrappers/python/spm/spm.py
@@ -49,6 +49,7 @@ class spmatrix():
                                        layout.ColMajor,
                                        None, None, None, None )
         self.id_ptr = pointer( self.spm_c )
+        self.init()
 
         if A is not None:
             self.fromsps( A, mtxtype_ )
@@ -152,6 +153,9 @@ class spmatrix():
     def printSpm( self ):
         pyspm_spmPrint( self.id_ptr )
 
+    def init( self ):
+        pyspm_spmInit( self.id_ptr )
+
     def checkAndCorrect( self ):
         spm1 = self.id_ptr
         spm2 = spmatrix()
-- 
GitLab