sagemath / sage

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

sage.tensor.modules: Add backend using NumPy ndarray #30308

Open mkoeppe opened 4 years ago

mkoeppe commented 4 years ago

https://numpy.org/doc/stable/reference/arrays.ndarray.html#the-n-dimensional-array-ndarray

https://numpy.org/doc/stable/user/basics.indexing.html#basics-indexing

Component: linear algebra

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

mkoeppe commented 4 years ago

Description changed:

--- 
+++ 
@@ -1 +1 @@
-
+https://numpy.org/doc/stable/reference/arrays.ndarray.html#the-n-dimensional-array-ndarray
mkoeppe commented 3 years ago
comment:3

Setting new milestone based on a cursory review of ticket status, priority, and last modification date.

mkoeppe commented 2 years ago

Description changed:

--- 
+++ 
@@ -1 +1,4 @@
 https://numpy.org/doc/stable/reference/arrays.ndarray.html#the-n-dimensional-array-ndarray
+
+https://numpy.org/doc/stable/user/basics.indexing.html#basics-indexing
+
Kd-Here commented 1 year ago

Could you please explain it more what to do here?

mkoeppe commented 7 months ago

The idea would be to have a separate class that can be used instead of the class Components in sage.tensor.modules.comp when the user asks for it.

This would be similar to how Matrix in Sage supports multiple backends (implementations), depending on the base ring, i.e., what kinds of elements are in the matrix.