Hot-keys on this page
r m x p toggle line displays
j k next/prev highlighted chunk
0 (zero) top of page
1 (one) first highlighted chunk
""" Functions for changing the base ring of matrices quickly. """ from __future__ import absolute_import
from .matrix_real_double_dense cimport Matrix_real_double_dense from .matrix_integer_dense cimport Matrix_integer_dense
""" Fast conversion of a matrix over the integers to a matrix with real double entries.
INPUT: A -- a dense matrix over the integers
OUTPUT: -- a dense real double matrix
EXAMPLES: sage: a = matrix(ZZ,2,3,[-2,-5,3,4,8,1030339830489349908]) sage: a.change_ring(RDF) [ -2.0 -5.0 3.0] [ 4.0 8.0 1.0303398304893499e+18] sage: import sage.matrix.change_ring sage: sage.matrix.change_ring.integer_to_real_double_dense(a) [ -2.0 -5.0 3.0] [ 4.0 8.0 1.0303398304893499e+18] """ cdef Py_ssize_t i, j cdef Matrix_real_double_dense M S, None, None, None)
|