MCPcopy Create free account

hub / github.com/cvxpy/cvxpy / functions

Functions13,519 in github.com/cvxpy/cvxpy

↓ 5 callersFunctionmul_bounds
Bounds for elementwise multiplication: x * y. Uses interval arithmetic: the result is [min(products), max(products)] where products are all c
cvxpy/utilities/bounds.py:249
↓ 5 callersMethodname
(self)
cvxpy/constraints/psd.py:60
↓ 5 callersMethodname
The name of the solver.
cvxpy/reductions/solvers/conic_solvers/scs_conif.py:123
↓ 5 callersMethodname
(self)
cvxpy/reductions/solvers/conic_solvers/highs_conif.py:133
↓ 5 callersMethodname
The name of the solver.
cvxpy/reductions/solvers/conic_solvers/diffcp_conif.py:43
↓ 5 callersFunctionneg_expr
Negate an operator. Parameters ---------- expr : LinOp The operator to be negated. Returns ------- LinOp The
cvxpy/lin_ops/lin_utils.py:175
↓ 5 callersMethodnonZeros
\returns the number of non zero coefficients */
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseCompressedBase.h:56
↓ 5 callersMethodnonZerosEstimate
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseCwiseBinaryOp.h:546
↓ 5 callersMethodnormalized
cvxpy/cvxcore/include/Eigen/src/Geometry/Quaternion.h:132
↓ 5 callersMethodobjective
Returns the scalar value of the objective given x.
cvxpy/reductions/solvers/nlp_solvers/nlp_solver.py:193
↓ 5 callersMethodoprelcone_1
These tests construct two matrices that commute (imposing all eigenvectors equal) and then use the fact that: T=Dop(A, B) for (A, B,
cvxpy/tests/test_cone2cone.py:644
↓ 5 callersFunctionpconj
cvxpy/cvxcore/include/Eigen/src/Core/arch/AVX512/Complex.h:69
↓ 5 callersFunctionpexp_double
cvxpy/cvxcore/include/Eigen/src/Core/arch/Default/GenericPacketMathFunctions.h:488
↓ 5 callersFunctionpexpm1
cvxpy/cvxcore/include/Eigen/src/Core/arch/GPU/PacketMath.h:922
↓ 5 callersFunctionpfloor
cvxpy/cvxcore/include/Eigen/src/Core/GenericPacketMath.h:829
↓ 5 callersFunctionplog1p
cvxpy/cvxcore/include/Eigen/src/Core/arch/GPU/PacketMath.h:914
↓ 5 callersFunctionpmadd
cvxpy/cvxcore/include/Eigen/src/Core/arch/AltiVec/PacketMath.h:827
↓ 5 callersFunctionpredux_helper
cvxpy/cvxcore/include/Eigen/src/Core/GenericPacketMath.h:858
↓ 5 callersFunctionpscatter
cvxpy/cvxcore/include/Eigen/src/Core/arch/GPU/PacketMath.h:631
↓ 5 callersFunctionpsqrt
cvxpy/cvxcore/include/Eigen/src/Core/arch/MSA/PacketMath.h:723
↓ 5 callersMethodrank
\returns the rank of the matrix of which *this is the complete orthogonal * decomposition. * * \note This method has to determine which pivot
cvxpy/cvxcore/include/Eigen/src/QR/CompleteOrthogonalDecomposition.h:235
↓ 5 callersMethodrow
cvxpy/cvxcore/include/Eigen/src/SparseLU/SparseLU_SupernodalMatrix.h:209
↓ 5 callersMethodrows
cvxpy/cvxcore/include/Eigen/src/Core/Block.h:218
↓ 5 callersFunctionrsqrt
cvxpy/cvxcore/include/Eigen/src/Core/MathFunctions.h:1481
↓ 5 callersFunctionrun
(cmd: list[str])
tools/release_notes.py:32
↓ 5 callersMethodscalar_value
(self, matrix)
cvxpy/interface/base_matrix_interface.py:68
↓ 5 callersMethodselect_rows
Select and reorder rows from each parameter slice. Semantics match SciPy: new_tensor[i, :] = old_tensor[rows[i], :] This mea
cvxpy/lin_ops/backends/coo_backend.py:176
↓ 5 callersMethodsetup
(self)
cvxpy/tests/test_expressions.py:1739
↓ 5 callersFunctionsparse_eye
* Returns an N x N sparse identity matrix. */
cvxpy/cvxcore/src/LinOpOperations.cpp:196
↓ 5 callersFunctionsqrt
cvxpy/cvxcore/include/Eigen/src/Core/arch/CUDA/Half.h:471
↓ 5 callersMethodtest_lp_eq_constraints
(cls, solver: str)
cvxpy/tests/solver_test_helpers.py:1615
↓ 5 callersMethodtest_lp_ineq_constraints
(cls, solver: str)
cvxpy/tests/solver_test_helpers.py:1594
↓ 5 callersMethodtest_pcp_1
(self, places: int = 4)
cvxpy/tests/test_KKT.py:176
↓ 5 callersMethodtest_pcp_2
(self, places: int = 4)
cvxpy/tests/test_KKT.py:184
↓ 5 callersMethodtest_sdp_1max
(self, places=4)
cvxpy/tests/test_KKT.py:114
↓ 5 callersMethodtoDenseMatrix
cvxpy/cvxcore/include/Eigen/src/Core/BandMatrix.h:145
↓ 5 callersMethodtranspose
cvxpy/cvxcore/include/Eigen/src/Core/Transpose.h:180
↓ 5 callersFunctionvst1_f32
cvxpy/cvxcore/include/Eigen/src/Core/arch/NEON/PacketMath.h:455
↓ 5 callersFunctionwrap_neg_index
Converts a negative index into a positive index. Args: index: The index to convert. Can be None. dim: The length of the dimension
cvxpy/utilities/key_utils.py:114
↓ 4 callersFunctionF32MaskToBf16Mask
cvxpy/cvxcore/include/Eigen/src/Core/arch/NEON/PacketMath.h:3419
↓ 4 callersFunctionSWIG_PyUnicode_AsUTF8AndSize
Wrapper around PyUnicode_AsUTF8AndSize - call Py_XDECREF on the returned pbytes when finished with the returned string */
cvxpy/cvxcore/python/cvxcore_wrap.cxx:838
↓ 4 callersFunction_all_isinf
Check if all values are inf, sparse-aware (O(nnz) for sparse).
cvxpy/utilities/bounds.py:79
↓ 4 callersFunction_compute_size_by_dict
Computes the product of the elements in indices based on the dictionary idx_dict. Parameters ---------- indices : iterable
cvxpy/utilities/einsum_utilities.py:85
↓ 4 callersFunction_ensure_dense
Convert sparse matrix to dense numpy array and expand to shape if given. Parameters ---------- arr : array-like The array to dens
cvxpy/utilities/bounds.py:24
↓ 4 callersFunction_infeasible
(problem)
cvxpy/reductions/solvers/bisection.py:46
↓ 4 callersMethod_is_at_section
(self)
doc/sphinxext/docscrape.py:139
↓ 4 callersMethod_make_prob
(self)
cvxpy/tests/test_parametric_bounds.py:217
↓ 4 callersFunction_mm_castpd_si128
cvxpy/cvxcore/include/Eigen/src/Core/arch/SSE/PacketMath.h:1498
↓ 4 callersFunction_mul
(a, b)
cvxpy/utilities/bounds.py:272
↓ 4 callersFunction_random_symmetric_batch
Generate a batch of symmetric matrices with shape (*batch_shape, n, n).
cvxpy/tests/test_grad.py:1109
↓ 4 callersFunction_safe_maximum
Element-wise maximum, handling sparse matrices. Uses scipy sparse's .maximum() when either operand is sparse, avoiding explicit densification
cvxpy/utilities/bounds.py:53
↓ 4 callersFunction_safe_minimum
Element-wise minimum, handling sparse matrices. Uses scipy sparse's .minimum() when either operand is sparse, avoiding explicit densification
cvxpy/utilities/bounds.py:66
↓ 4 callersFunction_solve
(problem, solver)
cvxpy/reductions/solvers/bisection.py:32
↓ 4 callersFunctionadd_canon
(expr, args)
cvxpy/reductions/dgp2dcp/canonicalizers/add_canon.py:24
↓ 4 callersMethodaffine
cvxpy/cvxcore/include/Eigen/src/Geometry/Transform.h:399
↓ 4 callersFunctionaligned_malloc
\internal Allocates \a size bytes. The returned pointer is guaranteed to have 16 or 32 bytes alignment depending on the requirements. * On allocatio
cvxpy/cvxcore/include/Eigen/src/Core/util/Memory.h:174
↓ 4 callersMethodapply
(self, problem)
cvxpy/reductions/eliminate_zero_sized.py:56
↓ 4 callersMethodapply
Converts a DCP problem to a conic form.
cvxpy/reductions/dcp2cone/dcp2cone.py:66
↓ 4 callersMethodapply
Returns a new problem and data for inverting the new solution. Returns ------- tuple (dict of arguments needed fo
cvxpy/reductions/solvers/conic_solvers/cbc_conif.py:82
↓ 4 callersFunctionarg
cvxpy/cvxcore/include/Eigen/src/Core/MathFunctions.h:1258
↓ 4 callersMethodas_quad_approx
(self, m: int, k: int)
cvxpy/constraints/exponential.py:107
↓ 4 callersMethodassertItemsAlmostEqual
(self, a, b, places: int = 2)
cvxpy/tests/test_param_cone_prog.py:27
↓ 4 callersFunctionassignCoeff
cvxpy/cvxcore/include/Eigen/src/Core/AssignEvaluator.h:652
↓ 4 callersFunctionat_least_2D
Upcast 0D and 1D to 2D.
cvxpy/reductions/complex2real/canonicalizers/matrix_canon.py:167
↓ 4 callersMethodblock_add
Add the block to a slice of the matrix. Args: matrix: The matrix the block will be added to. block: The matrix/scalar
cvxpy/interface/base_matrix_interface.py:98
↓ 4 callersFunctionbuild_non_disciplined_error_msg
(problem, discipline_type)
cvxpy/utilities/debug_tools.py:27
↓ 4 callersMethodcanonicalize_tree
(self, expr, real2imag, leaf_map)
cvxpy/reductions/complex2real/complex2real.py:359
↓ 4 callersMethodcanonicalize_tree
( self, expr: Expression, affine_above: bool, cse_cache: dict[ConeCacheKey, Ex
cvxpy/reductions/dcp2cone/dcp2cone.py:99
↓ 4 callersMethodcheck_factor
(self, L, places=5)
cvxpy/tests/test_linalg_utils.py:31
↓ 4 callersMethodcoeff
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseBlock.h:246
↓ 4 callersMethodcol
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseCwiseBinaryOp.h:199
↓ 4 callersMethodcolIndexByOuterInner
cvxpy/cvxcore/include/Eigen/src/Core/DenseCoeffsBase.h:74
↓ 4 callersFunctioncoletree
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseColEtree.h:61
↓ 4 callersMethodcols
cvxpy/cvxcore/include/Eigen/src/PaStiXSupport/PaStiXSupport.h:201
↓ 4 callersMethodcols
\returns the number of columns. \sa rows() */
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseMatrixBase.h:178
↓ 4 callersMethodcols
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseBlock.h:267
↓ 4 callersMethodcols
cvxpy/cvxcore/include/Eigen/src/Core/CwiseTernaryOp.h:147
↓ 4 callersMethodcomputeV
\returns true if \a V (full or thin) is asked for in this SVD decomposition */
cvxpy/cvxcore/include/Eigen/src/SVD/SVDBase.h:210
↓ 4 callersFunctioncompute_indptr
Compute CSR/CSC-style indptr directly from COO indices. This avoids creating scipy sparse matrices just to get the indptr array. Returns
cvxpy/lin_ops/backends/coo_backend.py:51
↓ 4 callersMethodconservativeResize
cvxpy/cvxcore/include/Eigen/src/Core/PlainObjectBase.h:382
↓ 4 callersFunctionconv_mul
Multiply by a convolution operator. arameters ---------- lin_op : LinOp The root linear operator. rh_val : NDArray Th
cvxpy/lin_ops/tree_mat.py:302
↓ 4 callersFunctioncoo_mul_elem
Element-wise multiplication of two CooTensors. For parametrized case: lhs has param_size > 1, rhs has param_size = 1. Each lhs slice is
cvxpy/lin_ops/backends/coo_backend.py:1220
↓ 4 callersFunctiondestruct_elements_of_array
cvxpy/cvxcore/include/Eigen/src/Core/util/Memory.h:285
↓ 4 callersMethoddiag_mat
Diagonal matrix to vector. Given (A, b) in view, select the rows corresponding to the elements on the diagonal in the original expres
cvxpy/lin_ops/backends/base.py:897
↓ 4 callersMethoddiagonal
cvxpy/cvxcore/include/Eigen/src/Geometry/AlignedBox.h:170
↓ 4 callersMethodevalTo
cvxpy/cvxcore/include/Eigen/src/Core/TriangularMatrix.h:616
↓ 4 callersFunctionexp
cvxpy/cvxcore/include/Eigen/src/Core/MathFunctions.h:1545
↓ 4 callersMethodexpcone_1
min 3 * x[0] + 2 * x[1] + x[2] s.t. 0.1 <= x[0] + x[1] + x[2] <= 1 x >= 0 and ... x[0]
cvxpy/tests/test_cone2cone.py:507
↓ 4 callersFunctionexplicit_sum
(expr)
cvxpy/reductions/dgp2dcp/util.py:19
↓ 4 callersFunctionexpression_gradcheck_batched_symmetric
Validate expression gradient for batched symmetric matrix inputs. For shape (*batch, n, n), perturbs each (n, n) slice symmetrically.
cvxpy/tests/test_grad.py:1029
↓ 4 callersFunctionfind_contraction
Finds the contraction for a given set of input and output sets. Parameters ---------- positions : iterable Integer positions
cvxpy/utilities/einsum_utilities.py:114
↓ 4 callersFunctionfloor
cvxpy/cvxcore/include/Eigen/src/Core/MathFunctions.h:1411
↓ 4 callersFunctionget_id
Returns a new id and updates the id counter. Returns ------- int A new id.
cvxpy/lin_ops/lin_utils.py:45
↓ 4 callersFunctionget_nd_matmul_dims
Compute dimensions for ND matmul C @ X. Parameters ---------- const_shape : tuple Shape of the constant C var_shape : tu
cvxpy/lin_ops/backends/base.py:71
↓ 4 callersFunctionget_nd_rmul_dims
Compute dimensions for ND rmul X @ C. Parameters ---------- var_shape : tuple Shape of the variable X const_shape : tupl
cvxpy/lin_ops/backends/base.py:100
↓ 4 callersFunctionget_runtime_reshape_size
cvxpy/cvxcore/include/Eigen/src/Core/util/ReshapedHelper.h:27
↓ 4 callersFunctionget_status
Map CPLEX status to CPXPY status.
cvxpy/reductions/solvers/conic_solvers/cplex_conif.py:147
↓ 4 callersFunctionget_status_map
Create status map from Xpress to CVXPY
cvxpy/reductions/solvers/conic_solvers/xpress_conif.py:555
↓ 4 callersMethodidentity
(self, size)
cvxpy/tests/test_base_classes.py:35
↓ 4 callersMethodindex
inline Index row() const { return (ArgType::Flags&RowMajorBit ? Base::outer() : this->index()); } inline Index col() const { return (ArgType::Flags&Ro
cvxpy/cvxcore/include/Eigen/src/SparseCore/SparseTriangularView.h:154
← previousnext →801–900 of 13,519, ranked by callers