summaryrefslogtreecommitdiffstats
path: root/polymatrix/init/initpolymatexpr.py
diff options
context:
space:
mode:
authorMichael Schneeberger <michael.schneeberger@fhnw.ch>2022-04-04 14:47:50 +0200
committerMichael Schneeberger <michael.schneeberger@fhnw.ch>2022-04-04 14:47:50 +0200
commit561997eaa73ad81ec2da63e6e62cdf776d87be4e (patch)
tree6e37072a76772e70738f3572b63b5836688eeeb3 /polymatrix/init/initpolymatexpr.py
parentbugfixes in KKT conditions (diff)
downloadpolymatrix-561997eaa73ad81ec2da63e6e62cdf776d87be4e.tar.gz
polymatrix-561997eaa73ad81ec2da63e6e62cdf776d87be4e.zip
implement polynomial matrix as an expression
Diffstat (limited to 'polymatrix/init/initpolymatexpr.py')
-rw-r--r--polymatrix/init/initpolymatexpr.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/polymatrix/init/initpolymatexpr.py b/polymatrix/init/initpolymatexpr.py
new file mode 100644
index 0000000..9f6cd20
--- /dev/null
+++ b/polymatrix/init/initpolymatexpr.py
@@ -0,0 +1,10 @@
+from polymatrix.impl.polymatexprimpl import PolyMatExprImpl
+
+def init_poly_mat_expr(
+ terms: dict,
+ shape: tuple,
+):
+ return PolyMatExprImpl(
+ terms=terms,
+ shape=shape,
+)