A matrix of type PAdicRational is defined and saved in a file. However,
attempting to read it back leads to an error:

PR ==> PAdicRational(13)
SQ ==> SQMATRIX(4, PR)

A : SQ := [[2, 3, 5, 0], [7, 11, 12, 4], [3, 8, 6, 10], [12, 9, 8, 5]]

typeOf A

SquareMatrix(4,PAdicRational(13))

f : File SQ := open("PaMat4x4.out", "output")

write!(f,A)
close!(f)


$ cat PaMat4x4.out

#2A(((0 2 #1="NullStream") (0 3 #1#) (0 5 #1#) (0 #1#))
    ((0 7 #1#) (0 11 #1#) (0 12 #1#) (0 4 #1#))
    ((0 3 #1#) (0 8 #1#) (0 6 #1#) (0 10 #1#))
    ((0 12 #1#) (0 9 #1#) (0 8 #1#) (0 5 #1#)))


$ cp PaMat4x4.out PaMat4x4.input


fn := filename("", "PaMat4x4", "input")$FileName

f := open(fn, "input")$File(SQ)

B : SQ := read!(f)

>> System error:
   The value "NullStream" is not of type INTEGER.

Removing the string "NullStream" doesn't seem to help....it leads to
other types of errors.

Thanks,
SWA

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/fricas-devel/921cd84b-247c-4662-9d11-cc8ea9918d7fn%40googlegroups.com.

Reply via email to