sagemath / sage

Main repository of SageMath
https://www.sagemath.org
Other
1.31k stars 449 forks source link

Auto convert matrices over RR/CC to RDF/CDF for eigenvalue/eigenvector computations #13660

Open ppurka opened 11 years ago

ppurka commented 11 years ago

This ticket implements the suggestion that was discussed in #12514. The idea is to be helpful to new users and coax them into doing the computations over the right fields.


Apply attachment: trac_13660-auto_convert_matrix_to_RDF_CDF.patch to devel/sage.

CC: @rbeezer

Component: linear algebra

Author: Punarbasu Purkayastha

Branch/Commit: u/ppurka/ticket/13660 @ f673222

Issue created by migration from https://trac.sagemath.org/ticket/13660

ppurka commented 11 years ago

Attachment: trac_13660-auto_convert_matrix_to_RDF_CDF.patch.gz

apply to devel/sage

ppurka commented 11 years ago

Description changed:

--- 
+++ 
@@ -1 +1,4 @@
 This ticket implements [the suggestion](https://github.com/sagemath/sage/issues/12514#comment:5) that was discussed in #12514. The idea is to be helpful to new users and coax them into doing the computations over the right fields.
+
+---
+Apply [attachment: trac_13660-auto_convert_matrix_to_RDF_CDF.patch](https://github.com/sagemath/sage-prod/files/10656550/trac_13660-auto_convert_matrix_to_RDF_CDF.patch.gz) to `devel/sage`.
ppurka commented 11 years ago
comment:1

Patch attached. I haven't changed the LU and QR functions for two reasons:

  1. I don't quite know what to cache in those functions there.
  2. The behavior of RR and CC is already documented in those functions.
ppurka commented 11 years ago

Author: Punarbasu Purkayastha

ppurka commented 10 years ago

Branch: u/ppurka/ticket/13660

ppurka commented 10 years ago
comment:5

Added a git version of the patch. This is based on 6.1.beta5.

pjbruin commented 10 years ago

Commit: f673222

pjbruin commented 10 years ago
comment:6

This doesn't generalise to a RealField of higher precision. I would suggest PARI's mateigen() is a good preinvented wheel to use. It is not currently wrapped in Sage, but that would be easy to do.


New commits:

f673222auto convert matrices over RR and CC to RDF and CDF for eigenvalue/eigenvector computations