summaryrefslogtreecommitdiffstats
path: root/polymatrix/init/initpolymatrixarrayexpr.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/initpolymatrixarrayexpr.py
parentbugfixes in KKT conditions (diff)
downloadpolymatrix-561997eaa73ad81ec2da63e6e62cdf776d87be4e.tar.gz
polymatrix-561997eaa73ad81ec2da63e6e62cdf776d87be4e.zip
implement polynomial matrix as an expression
Diffstat (limited to 'polymatrix/init/initpolymatrixarrayexpr.py')
-rw-r--r--polymatrix/init/initpolymatrixarrayexpr.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/polymatrix/init/initpolymatrixarrayexpr.py b/polymatrix/init/initpolymatrixarrayexpr.py
new file mode 100644
index 0000000..8f7dbed
--- /dev/null
+++ b/polymatrix/init/initpolymatrixarrayexpr.py
@@ -0,0 +1,10 @@
+from numpy import array
+from polymatrix.impl.polymatrixarrayexprimpl import PolyMatrixArrayExprImpl
+
+
+def init_poly_matrix_array_expr(
+ data: array,
+):
+ return PolyMatrixArrayExprImpl(
+ data=data,
+)