Hello,
I'm using CCodeGen from sympy.utilities.codegen, and it's working great.
I'd like to make all the arguments of a given expression InOutArguments, so
that they are passed by reference in the corresponding C code. I haven't
quite been able to figure this out by reading the documentation. A code
snippit as it stands goes like:
# Make mass matrix.
mass_matrix = N.T * N
mass_matrix_C = CCodeGen(project='mass_matrix')
routines = []
for x in range(order+1):
for y in range(order+1):
name = 'mm_%d%d' % (x, y)
routines.append(mass_matrix_C.routine(
name, mass_matrix[x,y], argument_sequence=None))
mass_matrix_C.write(routines, 'mass_matrix', to_files=True)
exit()
Is there something I can modify here?
Thanks for any help!
Mike.
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/df7361e2-43ce-49e8-9d8d-33952c02434e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.