Hi all,
Probably pretty obvious, but I need to call libgap for the following
function:
def unitary_change_of_basis(U,q):
if U.nrows() == 1 and U.ncols() == 1:
return matrix(F,[[factor_scalar(U[0,0])]])
libgap.LoadPackage("forms")
return matrix(F,libgap.BaseChangeToCanonical(libgap([list(row) for row
in U]).HermitianFormByMatrix(F))).inverse()
It works perfectly fine in a Sage notebook, but throws errors when I try to
include it in a PR.
What is the proper way to invoke libgap in, say,
symmetric_group_algebra.py? Should I go back to using libgap.eval?
Thank you,
Jackson
--
You received this message because you are subscribed to the Google Groups
"sage-devel" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/sage-devel/841bccf1-c5b7-46a5-b671-0f9c73f48729n%40googlegroups.com.