@@ -309,13 +309,47 @@ cdef class Matrix_complex_ball_dense(Matrix_dense):
309309
310310 cdef copy_from_unsafe(self , Py_ssize_t iDst, Py_ssize_t jDst, src, Py_ssize_t iSrc, Py_ssize_t jSrc):
311311 """
312- Copy the ``(iSrc, jSrc)`` entry of ``src`` into the ``(iDst, jDst)`` entry of this matrix.
312+ Copy the ``(iSrc, jSrc)`` entry of ``src`` into the ``(iDst, jDst)``
313+ entry of ``self``.
313314
314315 .. warning::
315316
316- This is very unsafe; it assumes ``iSrc``, ``jSrc``, ``iDst`` and ``jDst`` are in the right
317- range, and that ``src`` is a
317+ This is very unsafe; it assumes ``iSrc``, ``jSrc``, ``iDst`` and
318+ ``jDst`` are in the right range, and that ``src`` is a
318319 Matrix_complex_ball_dense with the same base ring as ``self``.
320+
321+ INPUT:
322+
323+ - ``iDst`` - the row to be copied to in ``self``.
324+ - ``jDst`` - the column to be copied to in ``self``.
325+ - ``src`` - the matrix to copy from. Should be a
326+ Matrix_complex_ball_dense with the same base ring as
327+ ``self``.
328+ - ``iSrc`` - the row to be copied from in ``src``.
329+ - ``jSrc`` - the column to be copied from in ``src``.
330+
331+ TESTS::
332+
333+ sage: m = MatrixSpace(CBF,3,4)(range(12))
334+ sage: m
335+ [ 0 1.000000000000000 2.000000000000000 3.000000000000000]
336+ [4.000000000000000 5.000000000000000 6.000000000000000 7.000000000000000]
337+ [8.000000000000000 9.000000000000000 10.00000000000000 11.00000000000000]
338+ sage: m.transpose()
339+ [ 0 4.000000000000000 8.000000000000000]
340+ [1.000000000000000 5.000000000000000 9.000000000000000]
341+ [2.000000000000000 6.000000000000000 10.00000000000000]
342+ [3.000000000000000 7.000000000000000 11.00000000000000]
343+ sage: m.matrix_from_rows([0,2])
344+ [ 0 1.000000000000000 2.000000000000000 3.000000000000000]
345+ [8.000000000000000 9.000000000000000 10.00000000000000 11.00000000000000]
346+ sage: m.matrix_from_columns([1,3])
347+ [1.000000000000000 3.000000000000000]
348+ [5.000000000000000 7.000000000000000]
349+ [9.000000000000000 11.00000000000000]
350+ sage: m.matrix_from_rows_and_columns([1,2],[0,3])
351+ [4.000000000000000 7.000000000000000]
352+ [8.000000000000000 11.00000000000000]
319353 """
320354 cdef Matrix_complex_ball_dense _src = < Matrix_complex_ball_dense> src
321355 acb_set(acb_mat_entry(self .value, iDst, jDst), acb_mat_entry(_src.value, iSrc, jSrc))
0 commit comments