Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cvxpy/cvxpy
/ functions
Functions
13,519 in github.com/cvxpy/cvxpy
⨍
Functions
13,519
◇
Types & classes
3,223
↳
Endpoints
49
↓ 4 callers
Method
variables
Returns all the variables present in the arguments.
cvxpy/utilities/canonical.py:58
↓ 4 callers
Function
vec2d_unpackhi
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h:102
↓ 4 callers
Function
vec2d_unpacklo
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h:98
↓ 4 callers
Function
vec4f_movelh
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h:76
↓ 4 callers
Method
visit
cvxpy/cvxcore/include/Eigen/src/Core/Visitor.h:116
↓ 3 callers
Function
QuickSplit
cvxpy/cvxcore/include/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h:29
↓ 3 callers
Function
SWIG_AsVal_long
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3765
↓ 3 callers
Function
SWIG_Python_AppendOutput
cvxpy/cvxcore/python/cvxcore_wrap.cxx:1231
↓ 3 callers
Function
SWIG_Python_TypeCache
The python cached type query */
cvxpy/cvxcore/python/cvxcore_wrap.cxx:2879
↓ 3 callers
Function
SYCL_PSTORE
global space
cvxpy/cvxcore/include/Eigen/src/Core/arch/SYCL/PacketMath.h:174
↓ 3 callers
Function
SwigPyBuiltin_AddPublicSymbol
cvxpy/cvxcore/python/cvxcore_wrap.cxx:1204
↓ 3 callers
Method
__init__
(self, x, p: list[int] | None = None, max_denom: int = 1024)
cvxpy/atoms/geo_mean.py:205
↓ 3 callers
Method
__init__
(self, x)
cvxpy/atoms/elementwise/hyperbolic.py:27
↓ 3 callers
Method
__init__
(self, lh_expr, rh_expr)
cvxpy/atoms/affine/binary_operators.py:349
↓ 3 callers
Method
__init__
(self, obj, doc=None, config={})
doc/sphinxext/docscrape_sphinx.py:226
↓ 3 callers
Method
__repr__
String to recreate the variable.
cvxpy/expressions/variable.py:129
↓ 3 callers
Method
_all_support_cpp
Returns True if all sub-expressions support C++, False otherwise.
cvxpy/utilities/canonical.py:199
↓ 3 callers
Function
_apply_nd_kron_structure_mul
Apply ND Kronecker structure I_n ⊗ C ⊗ I_batch for mul (C @ X). For ND matmul C @ X where C is 2D (m, k) and X has shape (..., k, n): ve
cvxpy/lin_ops/backends/scipy_backend.py:82
↓ 3 callers
Function
_apply_nd_kron_structure_rmul
Apply ND Kronecker structure for rmul: C.T tensor I_{batch*m}. For ND rmul X @ C where C is 2D (k, n) and X has shape (..., m, k): vec(X
cvxpy/lin_ops/backends/scipy_backend.py:219
↓ 3 callers
Method
_apply_reductions
Apply the full reduction chain to get a ParamConeProg.
cvxpy/tests/test_qp_solvers.py:1082
↓ 3 callers
Function
_assert_qp_matches_conic
(problem: cp.Problem, variable: cp.Variable)
cvxpy/tests/test_quad_dpp.py:41
↓ 3 callers
Function
_assert_resolve_matches_fresh
( first_solution: np.ndarray, resolved_solution: np.ndarray, fresh_problem: cp.Problem, variab
cvxpy/tests/test_quad_dpp.py:48
↓ 3 callers
Method
_canon_args
Canonicalize arguments of an expression. Like Canonicalization.canonicalize_tree, but preserves signs.
cvxpy/reductions/dqcp2dcp/dqcp2dcp.py:128
↓ 3 callers
Method
_compute_attr
Compute the attributes of the constant related to complex/real, sign.
cvxpy/expressions/constants/constant.py:210
↓ 3 callers
Method
_cone_size
The size of each second-order cone (1 + dimension of X).
cvxpy/constraints/second_order.py:130
↓ 3 callers
Method
_cone_size
The dimension of each PSD cone (the matrix side length n).
cvxpy/constraints/psd.py:81
↓ 3 callers
Method
_domain
Returns constraints describing the domain of the atom.
cvxpy/atoms/atom.py:547
↓ 3 callers
Method
_dual_cone
Implements the dual cone of the exponential cone See Pg 85 of the MOSEK modelling cookbook for more information
cvxpy/constraints/exponential.py:152
↓ 3 callers
Function
_empty_int
Return a copy of an empty int64 array.
cvxpy/lin_ops/backends/coo_backend.py:46
↓ 3 callers
Function
_expand_parametric_slices_mul
Generator yielding expanded slices for parametric ND mul (C @ X). For a stacked parameter matrix of shape (param_size * m, k), extracts each
cvxpy/lin_ops/backends/scipy_backend.py:103
↓ 3 callers
Function
_expand_parametric_slices_rmul
Generator yielding expanded slices for parametric ND rmul. For a stacked parameter matrix of shape (param_size * k, n), extracts each (k
cvxpy/lin_ops/backends/scipy_backend.py:237
↓ 3 callers
Function
_flop_count
Computes the number of FLOPS in the contraction. Parameters ---------- idx_contraction : iterable The indices involved in th
cvxpy/utilities/einsum_utilities.py:47
↓ 3 callers
Method
_init_coo
(self)
cvxpy/tests/nlp_tests/derivative_checker.py:61
↓ 3 callers
Function
_kron_eye_l
Apply Kronecker product kron(A, I_reps) to a CooTensor. For a tensor with shape (m, k), this produces a tensor with shape (m*reps, k*reps)
cvxpy/lin_ops/backends/coo_backend.py:451
↓ 3 callers
Function
_kron_nd_structure_mul
Build the Kronecker structure for ND mul (C @ X): I_n ⊗ C ⊗ I_B. This is the key operation for computing C @ X where C is a 2D constant (m,
cvxpy/lin_ops/backends/coo_backend.py:489
↓ 3 callers
Function
_kron_nd_structure_rmul
Build the Kronecker structure for ND rmul: C.T tensor I_{B*m}. This is the key operation for computing X @ C where C is a 2D constant (k, n)
cvxpy/lin_ops/backends/coo_backend.py:806
↓ 3 callers
Method
_max_ndim
Returns the maximum number of dimensions of any argument in the problem.
cvxpy/problems/problem.py:302
↓ 3 callers
Method
_param_size
(prob)
cvxpy/tests/test_attributes.py:508
↓ 3 callers
Function
_pow_const_base
Helper for b**x where b is a positive constant and x is a CVXPY expression. Validates that base is constant and positive, then returns exp(x * lo
cvxpy/expressions/expression.py:57
↓ 3 callers
Method
_prepare_cvxopt_matrices
Convert constraints and cost to solver-specific format
cvxpy/reductions/solvers/conic_solvers/cvxopt_conif.py:141
↓ 3 callers
Method
_prepare_data_and_inv_data
(self, problem)
cvxpy/reductions/solvers/conic_solvers/conic_solver.py:336
↓ 3 callers
Function
_skip_if_unavailable
(solver_name)
cvxpy/tests/test_parametric_bounds.py:22
↓ 3 callers
Method
_solve_vector_with_guess_impl
cvxpy/cvxcore/include/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h:194
↓ 3 callers
Method
_solve_with_guess_impl
cvxpy/cvxcore/include/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h:334
↓ 3 callers
Method
_str_header
(self, name, symbol='-')
doc/sphinxext/docscrape.py:317
↓ 3 callers
Method
_str_header
(self, name, symbol='`')
doc/sphinxext/docscrape_sphinx.py:32
↓ 3 callers
Method
_supports_cpp
Returns True if all the arguments in the problem support cpp backend.
cvxpy/problems/problem.py:309
↓ 3 callers
Method
_validate_value
Check that the value satisfies the leaf's symbolic attributes. Parameters ---------- val : numeric type The value
cvxpy/expressions/leaf.py:578
↓ 3 callers
Function
abs_bounds
Bounds for elementwise absolute value: |x|. Parameters ---------- lb, ub : np.ndarray Bounds for the expression. Returns
cvxpy/utilities/bounds.py:356
↓ 3 callers
Method
adjoint
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseMatrixBase.h:356
↓ 3 callers
Method
advance
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3455
↓ 3 callers
Method
apply
Apply SOCDim3 decomposition to all SOC constraints.
cvxpy/reductions/cone2cone/soc_dim3.py:415
↓ 3 callers
Method
apply_all
Apply 'func' across all variables and parameter slices. For the stacked-slices backend, we must pass an additional parameter 'p'
cvxpy/lin_ops/backends/scipy_backend.py:354
↓ 3 callers
Method
apply_all
Apply 'func' across all variables and parameter slices. func signature: func(compact: CooTensor, p: int) -> CooTensor
cvxpy/lin_ops/backends/coo_backend.py:1586
↓ 3 callers
Function
apply_rotation_in_the_plane
cvxpy/cvxcore/include/Eigen/src/Jacobi/Jacobi.h:452
↓ 3 callers
Method
assignOppositeCoeff
cvxpy/cvxcore/include/Eigen/src/Core/TriangularMatrix.h:792
↓ 3 callers
Function
batched_upper_tri_to_full
Returns a coefficient matrix that maps a vector of batch_size * tri entries (F-order layout of (batch_size, tri)) to batch_size * n*n entries
cvxpy/atoms/affine/upper_tri.py:183
↓ 3 callers
Function
c_to_fortran_numbering
cvxpy/cvxcore/include/Eigen/src/PaStiXSupport/PaStiXSupport.h:97
↓ 3 callers
Method
clear
cvxpy/cvxcore/include/Eigen/src/SparseCore/CompressedStorage.h:111
↓ 3 callers
Function
clear_mark
cvxpy/cvxcore/include/Eigen/src/OrderingMethods/Eigen_Colamd.h:1838
↓ 3 callers
Method
colToSup
* Return the array of column-to-supernode mapping */
cvxpy/cvxcore/include/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h:132
↓ 3 callers
Method
cols
cvxpy/cvxcore/include/Eigen/src/misc/Kernel.h:50
↓ 3 callers
Function
combine_scalar_factors
cvxpy/cvxcore/include/Eigen/src/Core/util/BlasUtil.h:568
↓ 3 callers
Function
compress_matrix
Compresses A and b by eliminating redundant rows. Identifies rows that are multiples of another row. Reduces A and b to C = PA, d = Pb, where
cvxpy/reductions/solvers/compr_matrix.py:29
↓ 3 callers
Method
conjugate
Equivalent to `cp.conj(self)`.
cvxpy/expressions/expression.py:1033
↓ 3 callers
Method
conjugate
\brief Complex conjugate of the Householder sequence. */
cvxpy/cvxcore/include/Eigen/src/Householder/HouseholderSequence.h:245
↓ 3 callers
Method
constants
Accessor method for constants. Returns ------- list of :class:`~cvxpy.expressions.constants.constant.Constant` A
cvxpy/problems/problem.py:484
↓ 3 callers
Function
coo_reshape
Reshape the tensor (Fortran order, column-major). For each entry at (row, col), compute linear index = col * m + row, then new_row = lin
cvxpy/lin_ops/backends/coo_backend.py:1381
↓ 3 callers
Function
cpuid_is_vendor
cvxpy/cvxcore/include/Eigen/src/Core/util/Memory.h:954
↓ 3 callers
Method
create_new_tensor_view
Create new TensorView with same shape information as self, but new data.
cvxpy/lin_ops/backends/base.py:393
↓ 3 callers
Function
decomp_quad
Compute a matrix decomposition. Compute scale, M1, M2 such that P = scale * (dot(M1, M1.T) - dot(M2, M2.T)). Uses LDL decomposition for
cvxpy/atoms/quad_form.py:223
↓ 3 callers
Method
diagonal
\returns a vector expression of the main diagonal */
cvxpy/cvxcore/include/Eigen/src/Core/BandMatrix.h:84
↓ 3 callers
Method
dot
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseDot.h:17
↓ 3 callers
Method
eigenvalues
cvxpy/cvxcore/include/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h:66
↓ 3 callers
Method
empty_with_shape
(cls, shape: tuple[int, int])
cvxpy/lin_ops/backends/base.py:211
↓ 3 callers
Method
epsilon
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseView.h:69
↓ 3 callers
Method
eval_jacobian_vals
Evaluate the constraint Jacobian and return its nonzero values. The values correspond to the sparsity pattern from get_jacobian_sparsity_coo(
cvxpy/reductions/solvers/nlp_solvers/diff_engine/c_problem.py:101
↓ 3 callers
Function
exp_canon
(expr, args, solver_context: SolverInfo | None = None)
cvxpy/reductions/dcp2cone/canonicalizers/exp_canon.py:27
↓ 3 callers
Method
expcone_socp_1
A random risk-parity portfolio optimization problem.
cvxpy/tests/test_cone2cone.py:543
↓ 3 callers
Function
expm1
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/Half.h:663
↓ 3 callers
Function
extract_mip_idx
Coalesces bool, int indices for variables. The indexing scheme assumes that the variables will be coalesced into a single one-dimensional
cvxpy/reductions/matrix_stuffing.py:102
↓ 3 callers
Function
extract_pr_numbers
Extract PR numbers from git log output. Matches the (#NNNN) pattern at the end of a line, which is the convention for merge and squash commit
tools/release_notes.py:56
↓ 3 callers
Function
f
(_, cb: kn.CB_context, req: kn.KN_eval_request, res: kn.KN_eval_result, ctx: Ctx)
cvxpy/reductions/solvers/conic_solvers/knitro_conif.py:99
↓ 3 callers
Function
factor
(W, H=None)
cvxpy/reductions/solvers/kktsolver.py:86
↓ 3 callers
Method
flatten_tensor
Flatten into 2D scipy sparse matrix in order-order and transpose. Parameters ---------- num_param_slices: Number of
cvxpy/lin_ops/backends/base.py:220
↓ 3 callers
Function
float_to_half_rtne
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/Half.h:529
↓ 3 callers
Function
floor
cvxpy/cvxcore/include/Eigen/src/Core/arch/CUDA/Half.h:493
↓ 3 callers
Function
format_matrix
Returns the matrix in the appropriate form for SWIG wrapper
cvxpy/cvxcore/python/cppbackend.py:251
↓ 3 callers
Function
fracify
Return a valid fractional weight tuple (and its dyadic completion) to represent the weights given by ``a``. When the input tuple con
cvxpy/utilities/power_tools.py:261
↓ 3 callers
Method
generate
Generate input based on type string.
cvxpy/tests/test_grad.py:427
↓ 3 callers
Function
generic_expm1
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:408
↓ 3 callers
Function
generic_plog1p
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:392
↓ 3 callers
Method
getMatrix
cvxpy/cvxcore/include/Eigen/src/PardisoSupport/PardisoSupport.h:414
↓ 3 callers
Function
get_const_coeffs
* Returns a map from CONSTANT_ID to the data matrix of the corresponding * CONSTANT type LinOp. The coefficient matrix is the data matrix reshaped *
cvxpy/cvxcore/src/LinOpOperations.cpp:1214
↓ 3 callers
Method
get_data_tensor
Returns tensor of constant node as a column vector.
cvxpy/lin_ops/backends/base.py:992
↓ 3 callers
Function
get_expr_vars
Get a list of the variables in the operator and their shapes. Parameters ---------- operator : LinOp The operator to extract the
cvxpy/lin_ops/lin_utils.py:685
↓ 3 callers
Method
get_func
Map the name of a function as given by the linOp to the implementation. Parameters ---------- func_name: The name of
cvxpy/lin_ops/backends/base.py:641
↓ 3 callers
Method
get_matrix_from_tensor
Wraps get_matrix_from_tensor in canonInterface. Parameters ---------- param_vec: flattened parameter vector w
cvxpy/reductions/utilities.py:142
↓ 3 callers
Method
get_pointer
cvxpy/cvxcore/include/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h:570
↓ 3 callers
Method
get_slice
cvxpy/cvxcore/src/LinOp.hpp:76
← previous
next →
1,001–1,100 of 13,519, ranked by callers