summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNao Pross <np@0hm.ch>2024-05-27 12:35:05 +0200
committerNao Pross <np@0hm.ch>2024-05-27 12:35:05 +0200
commit17510494f7ae3627f741c91deca61de68ac7fc07 (patch)
treec38110b9b61eef26a6d7b0cb60e7dae55d13717d
parentCreate NamedExpr and polymatrix.give_name to give shorter names to expressions (diff)
downloadpolymatrix-17510494f7ae3627f741c91deca61de68ac7fc07.tar.gz
polymatrix-17510494f7ae3627f741c91deca61de68ac7fc07.zip
Expose more form_* functions to users
Diffstat (limited to '')
-rw-r--r--polymatrix/__init__.py18
1 files changed, 13 insertions, 5 deletions
diff --git a/polymatrix/__init__.py b/polymatrix/__init__.py
index ba13779..a235661 100644
--- a/polymatrix/__init__.py
+++ b/polymatrix/__init__.py
@@ -6,9 +6,13 @@ from polymatrix.expressionstate import (
from polymatrix.expression.from_ import (
from_ as internal_from,
from_any as internal_from_any,
- from_names as internal_from_names,
from_name as internal_from_name,
+ from_names as internal_from_names,
+ from_number as internal_from_number,
+ from_numbers as internal_from_numbers,
+ from_numpy as internal_from_numpy,
from_state_monad as internal_from_state_monad,
+ from_sympy as internal_from_sympy,
)
from polymatrix.expression import (
@@ -47,16 +51,20 @@ lower_triangular = internal_lower_triangular
give_name = internal_give_name
to_constant_repr = internal_to_constant
-to_sympy_repr = internal_to_sympy
to_matrix_repr = from_polymatrix
+to_sympy_repr = internal_to_sympy
+to_affine = to_affine_expression
to_constant = internal_to_constant
-to_sympy = internal_to_sympy
to_dense = from_polymatrix
-to_affine = to_affine_expression
+to_sympy = internal_to_sympy
from_ = internal_from
from_any = internal_from_any
-from_names = internal_from_names
from_name = internal_from_name
+from_names = internal_from_names
+from_number = internal_from_number
+from_numbers = internal_from_numbers
+from_numpy = internal_from_numpy
from_state_monad = internal_from_state_monad
+from_sympy = internal_from_sympy