Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions cvxpy/reductions/solvers/nlp_solvers/diff_engine/c_problem.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,17 +16,9 @@
"""

import numpy as np
from sparsediffpy import _sparsediffengine as _diffengine

import cvxpy as cp

# Import the low-level C bindings
try:
from sparsediffpy import _sparsediffengine as _diffengine
except ImportError as e:
raise ImportError(
"NLP support requires sparsediffpy. Install with: pip install sparsediffpy"
) from e

from cvxpy.reductions.solvers.nlp_solvers.diff_engine.converters import (
build_variable_dict,
convert_expr,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,11 @@

import numpy as np
from scipy import sparse
from sparsediffpy import _sparsediffengine as _diffengine

import cvxpy as cp
from cvxpy.reductions.inverse_data import InverseData

# Import the low-level C bindings
try:
from sparsediffpy import _sparsediffengine as _diffengine
except ImportError as e:
raise ImportError(
"NLP support requires sparsediffpy. Install with: pip install sparsediffpy"
) from e


def normalize_shape(shape):
"""Normalize shape to 2D (d1, d2) for the C engine."""
Expand Down
Loading