Hi,
I was wondering how I can create symbolic symmetric positive definite
(s.p.d.) Matrices.
I would like to get a symbolic (symbolic in the Q-matrix) quadratic form
def sospoly(x, varname):
N = x.shape[0]
Q = MatrixSymbol(varname, N, N)
p = (x.T * Matrix(Q) * x)[0]
return p, Q
where Q is s.p.d.
It would be enough to enforce symmetry actually ( making sure that Q[i,j]
== Q[j,i]).
If there is no "SymmetricMatrixSymbol" is there an easy way to create a
symbolic lower triangular matrix?
Thank you!
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/sympy.
To view this discussion on the web visit
https://groups.google.com/d/msgid/sympy/7e3c8066-b165-4226-b690-7810a6d22472%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.