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
↓ 1 callers
Method
concatenate_tensors
Takes list of tensors which have already been offset along axis 0 (rows) and combines them into a single tensor.
cvxpy/lin_ops/backends/base.py:626
↓ 1 callers
Method
cone_sizes
The dimensions of the second-order cones. Returns ------- list A list of the sizes of the elementwise cones.
cvxpy/constraints/second_order.py:147
↓ 1 callers
Method
cone_sizes
The dimensions of the exponential cones. Returns ------- list A list of the sizes of the elementwise cones.
cvxpy/constraints/exponential.py:110
↓ 1 callers
Method
cone_sizes
The dimensions of the exponential cones. Returns ------- list A list of the sizes of the elementwise cones.
cvxpy/constraints/exponential.py:249
↓ 1 callers
Method
cone_sizes
The dimensions of the exponential cones. Returns ------- list A list of the sizes of the elementwise cones.
cvxpy/constraints/exponential.py:366
↓ 1 callers
Method
conic_repr_of_set
(self)
cvxpy/transforms/suppfunc.py:197
↓ 1 callers
Function
conjugate_gradient
cvxpy/cvxcore/include/Eigen/src/IterativeLinearSolvers/ConjugateGradient.h:27
↓ 1 callers
Method
conservativeResize
Resizes the matrix to a \a rows x \a cols matrix leaving old values untouched. * * If the sizes of the matrix are decreased, then the matr
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseMatrix.h:556
↓ 1 callers
Method
conservativeResize
cvxpy/cvxcore/include/Eigen/src/Core/DenseStorage.h:264
↓ 1 callers
Method
const_to_matrix
Convert an arbitrary value into a matrix of type self.target_matrix. Args: value: The constant to be converted. conve
cvxpy/interface/numpy_interface/sparse_matrix_interface.py:30
↓ 1 callers
Method
constants
Default is empty list of Constants.
cvxpy/expressions/leaf.py:255
↓ 1 callers
Method
constants
Returns the constants in the problem.
cvxpy/transforms/partial_optimize.py:220
↓ 1 callers
Function
constr_mul
Multiplies a vector by the matrix implied by the constraints. Parameters ---------- constraints : list A list of linear constrain
cvxpy/problems/iterative.py:120
↓ 1 callers
Function
constr_tmul
Multiplies a vector by the transpose of the constraints matrix. Parameters ---------- constraints : list A list of linear constra
cvxpy/problems/iterative.py:150
↓ 1 callers
Function
constr_unpack
Unpacks a vector into a list of values for constraints.
cvxpy/problems/iterative.py:47
↓ 1 callers
Method
construct_initial_point
Loop through all variables and collect the intial point.
cvxpy/reductions/solvers/nlp_solvers/nlp_solver.py:145
↓ 1 callers
Function
convert_matmul
Convert matrix multiplication A @ f(x), f(x) @ A, or X @ Y. Follows numpy's matmul broadcasting rules for 1D operands.
cvxpy/reductions/solvers/nlp_solvers/diff_engine/converters.py:33
↓ 1 callers
Function
convert_multiply
Convert elementwise multiplication.
cvxpy/reductions/solvers/nlp_solvers/diff_engine/converters.py:67
↓ 1 callers
Function
coords_equal
Check if two coordinate tuples represent the same sparsity pattern. Parameters ---------- coords1 : tuple of array-like First coo
cvxpy/utilities/bounds.py:859
↓ 1 callers
Method
copy
Returns a shallow copy of the GeoMean atom. Parameters ---------- args : list, optional The arguments to reconstr
cvxpy/atoms/geo_mean.py:340
↓ 1 callers
Method
copy
cvxpy/cvxcore/python/cvxcore_wrap.cxx:4780
↓ 1 callers
Method
copy
(self)
cvxpy/cvxcore/python/cvxcore.py:84
↓ 1 callers
Function
cos
cvxpy/cvxcore/include/Eigen/src/Core/arch/CUDA/Half.h:484
↓ 1 callers
Function
cosh
cvxpy/cvxcore/include/Eigen/src/Core/MathFunctions.h:1744
↓ 1 callers
Function
cosh
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/BFloat16.h:538
↓ 1 callers
Method
count
count. * Return the number of active pointers (i.e, pointers that * have been malloc but not freed). */
cvxpy/cvxcore/include/Eigen/src/Core/arch/SYCL/SyclMemoryModel.h:420
↓ 1 callers
Function
create_eq
Creates an internal equality constraint. Parameters ---------- lh_term : LinOp The left-hand operator in the equality constraint.
cvxpy/lin_ops/lin_utils.py:620
↓ 1 callers
Function
create_param
Wraps a parameter. Parameters ---------- shape : tuple The (rows, cols) dimensions of the operator. Returns -------
cvxpy/lin_ops/lin_utils.py:78
↓ 1 callers
Function
dedent_lines
Deindent a list of lines maximally
doc/sphinxext/docscrape.py:422
↓ 1 callers
Function
detect_super_cols
cvxpy/cvxcore/include/Eigen/src/OrderingMethods/Eigen_Colamd.h:1566
↓ 1 callers
Method
determinant
cvxpy/cvxcore/include/Eigen/src/LU/Determinant.h:107
↓ 1 callers
Function
diagonalize
(mat)
cvxpy/cvxcore/python/cvxcore.py:219
↓ 1 callers
Function
diagonalize
Create a giant diagonal matrix with entries given by the entries of mat.
cvxpy/cvxcore/src/Utils.cpp:133
↓ 1 callers
Function
dict_to_vec
Converts a map of variable id to value to a vector. Parameters ---------- val_dict : dict A map of variable id to value. var_
cvxpy/problems/iterative.py:91
↓ 1 callers
Function
dims_to_solver_cones
Convert CVXPY cone dimensions to Moreau cone specification. Parameters ---------- cone_dims : ConeDims CVXPY cone dimensions obje
cvxpy/reductions/solvers/conic_solvers/moreau_conif.py:31
↓ 1 callers
Function
dims_to_solver_cones
(cone_dims)
cvxpy/reductions/solvers/conic_solvers/clarabel_conif.py:30
↓ 1 callers
Function
dims_to_solver_cones
(cone_dims)
cvxpy/reductions/solvers/conic_solvers/qoco_conif.py:44
↓ 1 callers
Function
dims_to_solver_cones
(jl, cone_dims)
cvxpy/reductions/solvers/conic_solvers/cuclarabel_conif.py:29
↓ 1 callers
Method
dims_to_solver_cones
(cls, dims: ConeDims)
cvxpy/reductions/solvers/conic_solvers/cosmo_conif.py:102
↓ 1 callers
Function
dims_to_solver_dict
(cone_dims)
cvxpy/reductions/solvers/conic_solvers/cvxopt_conif.py:35
↓ 1 callers
Function
dims_to_solver_dict
(cone_dims)
cvxpy/reductions/solvers/conic_solvers/sdpa_conif.py:26
↓ 1 callers
Function
distance
cvxpy/cvxcore/python/cvxcore_wrap.cxx:4691
↓ 1 callers
Function
div_bounds
Bounds for elementwise division: x / y. Note: If the divisor interval contains zero, returns unbounded. Parameters ---------- lb1, u
cvxpy/utilities/bounds.py:301
↓ 1 callers
Function
div_canon
(expr, args)
cvxpy/reductions/dnlp2smooth/canonicalizers/div_canon.py:27
↓ 1 callers
Function
doubleword_reciprocal
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:1046
↓ 1 callers
Method
equal
cvxpy/cvxcore/python/cvxcore_wrap.cxx:3423
↓ 1 callers
Function
etree_find
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseColEtree.h:40
↓ 1 callers
Method
evalTo
cvxpy/cvxcore/include/Eigen/src/Eigenvalues/Tridiagonalization.h:542
↓ 1 callers
Method
expand_args
Helper function to extract the arguments from an AddExpression.
cvxpy/atoms/affine/add_expr.py:47
↓ 1 callers
Function
expcone_1
min 3 * x[0] + 2 * x[1] + x[2] s.t. 0.1 <= x[0] + x[1] + x[2] <= 1 x >= 0 x[0] >= x[1] * exp(x[2] / x[1])
cvxpy/tests/solver_test_helpers.py:616
↓ 1 callers
Function
expcone_permutor
(n_cones, exp_cone_order)
cvxpy/reductions/solvers/utilities.py:46
↓ 1 callers
Function
expcone_socp_1
A random risk-parity portfolio optimization problem.
cvxpy/tests/solver_test_helpers.py:642
↓ 1 callers
Function
expression_gradcheck_multi
Validate gradient for expressions with multiple variable arguments. Parameters ---------- expr_factory : callable Function t
cvxpy/tests/test_grad.py:294
↓ 1 callers
Function
expression_gradcheck_symmetric
Validate expression gradient for symmetric matrix inputs. For symmetric matrices, we perturb in directions that maintain symmetry. This
cvxpy/tests/test_grad.py:182
↓ 1 callers
Function
extract_flat_indices_from_index
Extract flattened indices from CVXPY index expression.
cvxpy/reductions/solvers/nlp_solvers/diff_engine/registry.py:68
↓ 1 callers
Function
extract_flat_indices_from_special_index
Extract flattened indices from CVXPY special_index expression.
cvxpy/reductions/solvers/nlp_solvers/diff_engine/registry.py:86
↓ 1 callers
Method
factorize
cvxpy/cvxcore/include/Eigen/src/SuperLUSupport/SuperLUSupport.h:613
↓ 1 callers
Method
factorize
cvxpy/cvxcore/include/Eigen/src/IterativeLinearSolvers/IncompleteLUT.h:244
↓ 1 callers
Function
fill
\sa MatrixBase::fill() */
cvxpy/cvxcore/include/Eigen/src/Core/TriangularMatrix.h:401
↓ 1 callers
Function
find_ordering
cvxpy/cvxcore/include/Eigen/src/OrderingMethods/Eigen_Colamd.h:954
↓ 1 callers
Method
first
\returns the first element \f$ a_0 \f$ in the sequence */
cvxpy/cvxcore/include/Eigen/src/Core/ArithmeticSequence.h:125
↓ 1 callers
Function
first_multiple
cvxpy/cvxcore/include/Eigen/src/Core/util/Memory.h:506
↓ 1 callers
Function
form_cone_constraint
Given a constraint represented as Ax+b in K for K a cvxpy cone, return an instantiated cvxpy constraint.
cvxpy/utilities/perspective_utils.py:28
↓ 1 callers
Method
format_labeled
(self)
cvxpy/atoms/elementwise/logic.py:111
↓ 1 callers
Method
format_labeled
Labeled representation of the index expression.
cvxpy/atoms/affine/index.py:86
↓ 1 callers
Method
format_labeled
Format problem with labels where available. Shows labels for both the objective expression and constraints.
cvxpy/problems/problem.py:1474
↓ 1 callers
Function
format_slice
Converts part of a key into a slice with a start and step. Uses the same syntax as numpy. Args: key_val: The value to convert into a
cvxpy/utilities/key_utils.py:68
↓ 1 callers
Method
from_dict
Construct a SolverStats object from a dictionary of attributes. Parameters ---------- attr : dict A dictionary of
cvxpy/problems/problem.py:1569
↓ 1 callers
Function
garbage_collection
cvxpy/cvxcore/include/Eigen/src/OrderingMethods/Eigen_Colamd.h:1717
↓ 1 callers
Function
generic_pow
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:1447
↓ 1 callers
Function
generic_pow_impl
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:1398
↓ 1 callers
Function
geo_mean
Factory function for (weighted) geometric mean. Parameters ---------- x : Expression The value to take the geometric mean of.
cvxpy/atoms/geo_mean.py:36
↓ 1 callers
Function
get_all_cone_ids
Get all constraint IDs from a tree.
cvxpy/reductions/cone2cone/cone_tree.py:59
↓ 1 callers
Method
get_args
(self)
cvxpy/cvxcore/python/cvxcore.py:164
↓ 1 callers
Method
get_bounds
Return bounds for this constant. For constants, the bounds are exactly (value, value). Sparse matrices are returned as-is to avoid me
cvxpy/expressions/constants/constant.py:280
↓ 1 callers
Function
get_constant
Returns the constant term in the expression. Parameters ---------- lin_op : LinOp The root linear operator. Returns ----
cvxpy/lin_ops/tree_mat.py:336
↓ 1 callers
Method
get_constant_data_from_const
Extract the constant data from a LinOp node of type "*_const".
cvxpy/lin_ops/backends/base.py:611
↓ 1 callers
Method
get_constraint_bounds
Get constraint bounds for all constraints. Also converts inequalities to nonneg form, as well as equalities to zero constrain
cvxpy/reductions/solvers/nlp_solvers/nlp_solver.py:99
↓ 1 callers
Function
get_conv_mat
* Return the coefficients for CONV operator. The coefficient matrix is * constructed by creating a toeplitz matrix with the constant vector * in DAT
cvxpy/cvxcore/src/LinOpOperations.cpp:509
↓ 1 callers
Method
get_data
(self)
cvxpy/constraints/exponential.py:212
↓ 1 callers
Method
get_data
(self)
cvxpy/constraints/exponential.py:340
↓ 1 callers
Method
get_data
Returns the (row slice, column slice).
cvxpy/atoms/affine/index.py:101
↓ 1 callers
Method
get_data
Returns info needed to reconstruct the object besides the args. Returns ------- list
cvxpy/utilities/canonical.py:154
↓ 1 callers
Method
get_data_ndim
(self)
cvxpy/cvxcore/python/cvxcore.py:182
↓ 1 callers
Function
get_default_canon_backend
Returns the default canonicalization backend, which can be set globally using an environment variable.
cvxpy/cvxcore/python/canonInterface.py:252
↓ 1 callers
Function
get_diag_matrix_mat
* Return the coefficients for DIAG_MAT (diagonal matrix to vector): a * N by N^2 matrix where each row has a 1 in the row * N + row entry * correspo
cvxpy/cvxcore/src/LinOpOperations.cpp:583
↓ 1 callers
Function
get_diag_vec_mat
* Return the coefficients for DIAG_VEC (vector to diagonal matrix): a * N^2 by N matrix where each column I has a 1 in row I * N + I * corresponding
cvxpy/cvxcore/src/LinOpOperations.cpp:625
↓ 1 callers
Function
get_div_mat
* Return the coefficients for DIV: a diagonal matrix where each diagonal * entry is 1 / DIVISOR. * * Parameters: linOp with type DIV * * Returns:
cvxpy/cvxcore/src/LinOpOperations.cpp:1054
↓ 1 callers
Function
get_doc_object
(obj, what=None, doc=None, config={})
doc/sphinxext/docscrape_sphinx.py:230
↓ 1 callers
Method
get_empty_view
Returns an empty view of the corresponding TensorView subclass, coupling the CanonBackend subclass with the TensorView subclass.
cvxpy/lin_ops/backends/base.py:634
↓ 1 callers
Method
get_empty_view
Return an empty CooTensorView.
cvxpy/lin_ops/backends/coo_backend.py:1630
↓ 1 callers
Function
get_exprval_in_vec_func
(ineq_form: bool)
cvxpy/reductions/discrete2mixedint/valinvec2mixedint.py:57
↓ 1 callers
Function
get_hstack_mat
* Return the coefficients for HSTACK * * Parameters: linOp LIN with type HSTACK * Returns: vector of coefficient matrices for each argument. */
cvxpy/cvxcore/src/LinOpOperations.cpp:467
↓ 1 callers
Function
get_index_mat
* Return the coefficients for INDEX: a N by ROWS*COLS matrix * where N is the number of total elements in the slice. Element i, j * is 1 if element
cvxpy/cvxcore/src/LinOpOperations.cpp:732
↓ 1 callers
Function
get_indices
Get indices for dimension.
cvxpy/tests/test_constant_atoms.py:353
↓ 1 callers
Method
get_kktsolver_opt
Returns the KKT solver selected by the user. Removes the KKT solver from solver_opts. Parameters ---------- solver_o
cvxpy/reductions/solvers/conic_solvers/cvxopt_conif.py:352
↓ 1 callers
Function
get_kronl_mat
* Return the coefficients for KRON_L. * * Parameters: linOp LIN with type KRON_L * Returns: vector containing the coefficient matrix for the Kronec
cvxpy/cvxcore/src/LinOpOperations.cpp:363
↓ 1 callers
Method
get_linOp_data
(self)
cvxpy/cvxcore/python/cvxcore.py:176
↓ 1 callers
Function
get_max_denom
Get the maximum denominator in a sequence of ``Fraction`` and ``int`` objects
cvxpy/utilities/power_tools.py:643
↓ 1 callers
Function
get_mul_elemwise_mat
* Return the coefficients for MUL_ELEM: an N x N diagonal matrix where the * n-th element on the diagonal corresponds to the element n = j*rows + i i
cvxpy/cvxcore/src/LinOpOperations.cpp:769
← previous
next →
2,101–2,200 of 13,519, ranked by callers