Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 4f1fc4c6 authored by Mathieu Faverge's avatar Mathieu Faverge
Browse files

Add missing init function in python

parent 846661e4
No related branches found
No related tags found
1 merge request!36Make spmSymmetrize and spmMergeDuplicate distributed and multi-dofs
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment