#NEWLINE# def c_wrapper_dec( self ) : #NEWLINE# #INDENT# val = '' #NEWLINE# if self . _is_mixed_mat : #NEWLINE# #INDENT# ( rows , cols ) = self . data . sparsity . shape #NEWLINE# for i in range ( rows ) : #NEWLINE# #INDENT# for j in range ( cols ) : #NEWLINE# #INDENT# val += ( 'Mat %(iname)s; MatNestGetSubMat(%(name)s_, %(i)d, %(j)d, &%(iname)s);\n' % { #NEWLINE# #INDENT# 'name' : self . c_arg_name ( ) , #NEWLINE# 'iname' : self . c_arg_name ( i , j ) , #NEWLINE# 'i' : i , #NEWLINE# 'j' : j , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if self . _is_mat : #NEWLINE# #INDENT# val += ( 'Mat %(iname)s = %(name)s_;\n' % { #NEWLINE# #INDENT# 'name' : self . c_arg_name ( ) , #NEWLINE# 'iname' : self . c_arg_name ( 0 , 0 ) , #NEWLINE# #UNINDENT# } ) #NEWLINE# #UNINDENT# #UNINDENT# return val