MCPcopy Create free account

hub / github.com/cvxpy/cvxpy / functions

Functions13,519 in github.com/cvxpy/cvxpy

↓ 4 callersMethodvariables
Returns all the variables present in the arguments.
cvxpy/utilities/canonical.py:58
↓ 4 callersFunctionvec2d_unpackhi
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h:102
↓ 4 callersFunctionvec2d_unpacklo
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h:98
↓ 4 callersFunctionvec4f_movelh
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h:76
↓ 4 callersMethodvisit
cvxpy/cvxcore/include/Eigen/src/Core/Visitor.h:116
↓ 3 callersFunctionQuickSplit
cvxpy/cvxcore/include/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h:29
↓ 3 callersFunctionSWIG_AsVal_long
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3765
↓ 3 callersFunctionSWIG_Python_AppendOutput
cvxpy/cvxcore/python/cvxcore_wrap.cxx:1231
↓ 3 callersFunctionSWIG_Python_TypeCache
The python cached type query */
cvxpy/cvxcore/python/cvxcore_wrap.cxx:2879
↓ 3 callersFunctionSYCL_PSTORE
global space
cvxpy/cvxcore/include/Eigen/src/Core/arch/SYCL/PacketMath.h:174
↓ 3 callersFunctionSwigPyBuiltin_AddPublicSymbol
cvxpy/cvxcore/python/cvxcore_wrap.cxx:1204
↓ 3 callersMethod__init__
(self, x, p: list[int] | None = None, max_denom: int = 1024)
cvxpy/atoms/geo_mean.py:205
↓ 3 callersMethod__init__
(self, x)
cvxpy/atoms/elementwise/hyperbolic.py:27
↓ 3 callersMethod__init__
(self, lh_expr, rh_expr)
cvxpy/atoms/affine/binary_operators.py:349
↓ 3 callersMethod__init__
(self, obj, doc=None, config={})
doc/sphinxext/docscrape_sphinx.py:226
↓ 3 callersMethod__repr__
String to recreate the variable.
cvxpy/expressions/variable.py:129
↓ 3 callersMethod_all_support_cpp
Returns True if all sub-expressions support C++, False otherwise.
cvxpy/utilities/canonical.py:199
↓ 3 callersFunction_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 callersFunction_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 callersMethod_apply_reductions
Apply the full reduction chain to get a ParamConeProg.
cvxpy/tests/test_qp_solvers.py:1082
↓ 3 callersFunction_assert_qp_matches_conic
(problem: cp.Problem, variable: cp.Variable)
cvxpy/tests/test_quad_dpp.py:41
↓ 3 callersFunction_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 callersMethod_canon_args
Canonicalize arguments of an expression. Like Canonicalization.canonicalize_tree, but preserves signs.
cvxpy/reductions/dqcp2dcp/dqcp2dcp.py:128
↓ 3 callersMethod_compute_attr
Compute the attributes of the constant related to complex/real, sign.
cvxpy/expressions/constants/constant.py:210
↓ 3 callersMethod_cone_size
The size of each second-order cone (1 + dimension of X).
cvxpy/constraints/second_order.py:130
↓ 3 callersMethod_cone_size
The dimension of each PSD cone (the matrix side length n).
cvxpy/constraints/psd.py:81
↓ 3 callersMethod_domain
Returns constraints describing the domain of the atom.
cvxpy/atoms/atom.py:547
↓ 3 callersMethod_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 callersFunction_empty_int
Return a copy of an empty int64 array.
cvxpy/lin_ops/backends/coo_backend.py:46
↓ 3 callersFunction_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 callersFunction_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 callersFunction_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 callersMethod_init_coo
(self)
cvxpy/tests/nlp_tests/derivative_checker.py:61
↓ 3 callersFunction_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 callersFunction_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 callersFunction_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 callersMethod_max_ndim
Returns the maximum number of dimensions of any argument in the problem.
cvxpy/problems/problem.py:302
↓ 3 callersMethod_param_size
(prob)
cvxpy/tests/test_attributes.py:508
↓ 3 callersFunction_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 callersMethod_prepare_cvxopt_matrices
Convert constraints and cost to solver-specific format
cvxpy/reductions/solvers/conic_solvers/cvxopt_conif.py:141
↓ 3 callersMethod_prepare_data_and_inv_data
(self, problem)
cvxpy/reductions/solvers/conic_solvers/conic_solver.py:336
↓ 3 callersFunction_skip_if_unavailable
(solver_name)
cvxpy/tests/test_parametric_bounds.py:22
↓ 3 callersMethod_solve_vector_with_guess_impl
cvxpy/cvxcore/include/Eigen/src/IterativeLinearSolvers/BiCGSTAB.h:194
↓ 3 callersMethod_solve_with_guess_impl
cvxpy/cvxcore/include/Eigen/src/IterativeLinearSolvers/IterativeSolverBase.h:334
↓ 3 callersMethod_str_header
(self, name, symbol='-')
doc/sphinxext/docscrape.py:317
↓ 3 callersMethod_str_header
(self, name, symbol='`')
doc/sphinxext/docscrape_sphinx.py:32
↓ 3 callersMethod_supports_cpp
Returns True if all the arguments in the problem support cpp backend.
cvxpy/problems/problem.py:309
↓ 3 callersMethod_validate_value
Check that the value satisfies the leaf's symbolic attributes. Parameters ---------- val : numeric type The value
cvxpy/expressions/leaf.py:578
↓ 3 callersFunctionabs_bounds
Bounds for elementwise absolute value: |x|. Parameters ---------- lb, ub : np.ndarray Bounds for the expression. Returns
cvxpy/utilities/bounds.py:356
↓ 3 callersMethodadjoint
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseMatrixBase.h:356
↓ 3 callersMethodadvance
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3455
↓ 3 callersMethodapply
Apply SOCDim3 decomposition to all SOC constraints.
cvxpy/reductions/cone2cone/soc_dim3.py:415
↓ 3 callersMethodapply_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 callersMethodapply_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 callersFunctionapply_rotation_in_the_plane
cvxpy/cvxcore/include/Eigen/src/Jacobi/Jacobi.h:452
↓ 3 callersMethodassignOppositeCoeff
cvxpy/cvxcore/include/Eigen/src/Core/TriangularMatrix.h:792
↓ 3 callersFunctionbatched_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 callersFunctionc_to_fortran_numbering
cvxpy/cvxcore/include/Eigen/src/PaStiXSupport/PaStiXSupport.h:97
↓ 3 callersMethodclear
cvxpy/cvxcore/include/Eigen/src/SparseCore/CompressedStorage.h:111
↓ 3 callersFunctionclear_mark
cvxpy/cvxcore/include/Eigen/src/OrderingMethods/Eigen_Colamd.h:1838
↓ 3 callersMethodcolToSup
* Return the array of column-to-supernode mapping */
cvxpy/cvxcore/include/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h:132
↓ 3 callersMethodcols
cvxpy/cvxcore/include/Eigen/src/misc/Kernel.h:50
↓ 3 callersFunctioncombine_scalar_factors
cvxpy/cvxcore/include/Eigen/src/Core/util/BlasUtil.h:568
↓ 3 callersFunctioncompress_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 callersMethodconjugate
Equivalent to `cp.conj(self)`.
cvxpy/expressions/expression.py:1033
↓ 3 callersMethodconjugate
\brief Complex conjugate of the Householder sequence. */
cvxpy/cvxcore/include/Eigen/src/Householder/HouseholderSequence.h:245
↓ 3 callersMethodconstants
Accessor method for constants. Returns ------- list of :class:`~cvxpy.expressions.constants.constant.Constant` A
cvxpy/problems/problem.py:484
↓ 3 callersFunctioncoo_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 callersFunctioncpuid_is_vendor
cvxpy/cvxcore/include/Eigen/src/Core/util/Memory.h:954
↓ 3 callersMethodcreate_new_tensor_view
Create new TensorView with same shape information as self, but new data.
cvxpy/lin_ops/backends/base.py:393
↓ 3 callersFunctiondecomp_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 callersMethoddiagonal
\returns a vector expression of the main diagonal */
cvxpy/cvxcore/include/Eigen/src/Core/BandMatrix.h:84
↓ 3 callersMethoddot
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseDot.h:17
↓ 3 callersMethodeigenvalues
cvxpy/cvxcore/include/Eigen/src/Eigenvalues/MatrixBaseEigenvalues.h:66
↓ 3 callersMethodempty_with_shape
(cls, shape: tuple[int, int])
cvxpy/lin_ops/backends/base.py:211
↓ 3 callersMethodepsilon
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseView.h:69
↓ 3 callersMethodeval_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 callersFunctionexp_canon
(expr, args, solver_context: SolverInfo | None = None)
cvxpy/reductions/dcp2cone/canonicalizers/exp_canon.py:27
↓ 3 callersMethodexpcone_socp_1
A random risk-parity portfolio optimization problem.
cvxpy/tests/test_cone2cone.py:543
↓ 3 callersFunctionexpm1
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/Half.h:663
↓ 3 callersFunctionextract_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 callersFunctionextract_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 callersFunctionf
(_, 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 callersFunctionfactor
(W, H=None)
cvxpy/reductions/solvers/kktsolver.py:86
↓ 3 callersMethodflatten_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 callersFunctionfloat_to_half_rtne
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/Half.h:529
↓ 3 callersFunctionfloor
cvxpy/cvxcore/include/Eigen/src/Core/arch/CUDA/Half.h:493
↓ 3 callersFunctionformat_matrix
Returns the matrix in the appropriate form for SWIG wrapper
cvxpy/cvxcore/python/cppbackend.py:251
↓ 3 callersFunctionfracify
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 callersMethodgenerate
Generate input based on type string.
cvxpy/tests/test_grad.py:427
↓ 3 callersFunctiongeneric_expm1
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:408
↓ 3 callersFunctiongeneric_plog1p
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:392
↓ 3 callersMethodgetMatrix
cvxpy/cvxcore/include/Eigen/src/PardisoSupport/PardisoSupport.h:414
↓ 3 callersFunctionget_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 callersMethodget_data_tensor
Returns tensor of constant node as a column vector.
cvxpy/lin_ops/backends/base.py:992
↓ 3 callersFunctionget_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 callersMethodget_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 callersMethodget_matrix_from_tensor
Wraps get_matrix_from_tensor in canonInterface. Parameters ---------- param_vec: flattened parameter vector w
cvxpy/reductions/utilities.py:142
↓ 3 callersMethodget_pointer
cvxpy/cvxcore/include/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h:570
↓ 3 callersMethodget_slice
cvxpy/cvxcore/src/LinOp.hpp:76
← previousnext →1,001–1,100 of 13,519, ranked by callers