Hello. Thank you for showing me the equivalent process in PARI/GP. I
think this implies I need to transfer the complex Hermitian matrix
into gp_console() to find eigenvectors, then transfer them back to
Sage. I'll update this post when I figure out how to do that.
In the mean time, if someone has a simple way of doing that please let
me know. My updated Sage code lacks the last step.
precision_digits=30
nop=5 # rank of matrix
MS_nop_comp=MatrixSpace(ComplexField(precision_digits),nop,nop)
tmat=MS_nop_comp(0) # zero-ize the values
ttdag=MS_nop_comp(0)
for a in range(nop):
for b in range(nop):
tmat[a,b]=random()+I*random()
ttdag=tmat*tmat.conjugate().transpose() # get a Hermitian matrix
# Find eigenvectors of ttdag in PARI/GP, pass results back to sage
Thanks for the help,