I have defined a random 2x2 matrix
import cvxpy as cp
import numpy as np
np.random.seed(1)
A = np.random.randn(2, 2)
type(A)
numpy.ndarray
This is of type numpy.ndarray and I want to use this variable within cvxpy to ask for it to become a constraint of positive definiteness. How can I convert such a numpy.ndarray to a cvxpy variable such that I can ask for
constraints = [A >> 0]
??
In my actual problem A is much more complicated that a random matrix(it is a specific 19x12 matrix I have constructed using numpy) but the idea is the same as above.