Arbitrary precision complex ball matrices using Arb

AUTHORS:

  • Clemens Heuberger (2014-10-25): Initial version.

This is a rudimentary binding to the Arb library; it may be useful to refer to its documentation for more details.

TESTS:

sage: mat = matrix(CBF, 2, 2, range(4))
sage: x = polygen(QQ)
sage: pol = x^3 + 2
sage: pol(mat)
[8.000000000000000 11.00000000000000]
[22.00000000000000 41.00000000000000]
class sage.matrix.matrix_complex_ball_dense.Matrix_complex_ball_dense

Bases: sage.matrix.matrix_dense.Matrix_dense

Matrix over a complex ball field. Implemented using the acb_mat type of the Arb library.

EXAMPLES:

sage: MatrixSpace(CBF, 3)(2)
[2.000000000000000                 0                 0]
[                0 2.000000000000000                 0]
[                0                 0 2.000000000000000]
sage: matrix(CBF, 1, 3, [1, 2, -3])
[ 1.000000000000000  2.000000000000000 -3.000000000000000]