From 079e0d896e1a12e3e7f08b6b09dfe2697d2feb0c Mon Sep 17 00:00:00 2001 From: Michael Orlitzky Date: Tue, 2 Mar 2021 11:20:53 -0500 Subject: [PATCH] octonions: rename to_list() -> to_nested_list(). --- mjo/octonions.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mjo/octonions.py b/mjo/octonions.py index 87bf5ff..a5f6dec 100644 --- a/mjo/octonions.py +++ b/mjo/octonions.py @@ -345,7 +345,7 @@ class OctonionMatrix(IndexedFreeModuleElement): ncols = nrows @cached_method - def to_list(self): + def to_nested_list(self): r""" SETUP:: @@ -372,7 +372,7 @@ class OctonionMatrix(IndexedFreeModuleElement): +----+---+---+ | 0 | 0 | 0 | +----+---+---+ - sage: (E00e0 + 2*E00e3).to_list() + sage: (E00e0 + 2*E00e3).to_nested_list() [[e0 + 2*e3, 0, 0], [0, 0, 0], [0, 0, 0]] """ @@ -401,7 +401,7 @@ class OctonionMatrix(IndexedFreeModuleElement): +----+----+----+ """ - return table(self.to_list(), frame=True)._repr_() + return table(self.to_nested_list(), frame=True)._repr_() def __getitem__(self, indices): @@ -426,7 +426,7 @@ class OctonionMatrix(IndexedFreeModuleElement): """ i,j = indices - return self.to_list()[i][j] + return self.to_nested_list()[i][j] def trace(self): r""" -- 2.44.2