helper.np_array_as_expr¶
Converts a np.array object to cvxpy expression object.
Functions¶
|
Convert numpy array into a cvxpy expression. |
Module Contents¶
- helper.np_array_as_expr.np_array_as_expr(np_arr)¶
Convert numpy array into a cvxpy expression.
- Parameters:
np_arr ([numpy.ndarray]) – The numpy array to be converted.
- Returns:
The cvxpy expression of the numpy array.
- Return type:
cvxpy.expressions.expression.Expression