How to convert sagemath matrix to R matrix?
I have a 5 x 30 matrix, G, created in sagemath. The type is
type 'sage.matrix.matrix_generic_dense.Matrix_generic_dense'.
I want to convert this matrix to a R matrix to perform various manipulations using the R interface.
How can I use sagemath matrix, G, to create a matrix in the R interface?
I tried the following but to no avail.
r.matrix(G)
r.matrix(G,5,30)