MinEntries-class {CVXR} | R Documentation |
The MinEntries class.
Description
The minimum of an expression.
Usage
MinEntries(x, axis = NA_real_, keepdims = FALSE)
## S4 method for signature 'MinEntries'
to_numeric(object, values)
## S4 method for signature 'MinEntries'
sign_from_args(object)
## S4 method for signature 'MinEntries'
is_atom_convex(object)
## S4 method for signature 'MinEntries'
is_atom_concave(object)
## S4 method for signature 'MinEntries'
is_atom_log_log_convex(object)
## S4 method for signature 'MinEntries'
is_atom_log_log_concave(object)
## S4 method for signature 'MinEntries'
is_incr(object, idx)
## S4 method for signature 'MinEntries'
is_decr(object, idx)
## S4 method for signature 'MinEntries'
is_pwl(object)
## S4 method for signature 'MinEntries'
.grad(object, values)
## S4 method for signature 'MinEntries'
.column_grad(object, value)
Arguments
x |
An Expression representing a vector or matrix. |
axis |
(Optional) The dimension across which to apply the function: |
keepdims |
(Optional) Should dimensions be maintained when applying the atom along an axis? If |
object |
A MinEntries object. |
values |
A list of numeric values for the arguments |
idx |
An index into the atom. |
value |
A numeric value |
Methods (by generic)
-
to_numeric(MinEntries)
: The largest entry inx
. -
sign_from_args(MinEntries)
: The sign of the atom. -
is_atom_convex(MinEntries)
: The atom is not convex. -
is_atom_concave(MinEntries)
: The atom is concave. -
is_atom_log_log_convex(MinEntries)
: Is the atom log-log convex? -
is_atom_log_log_concave(MinEntries)
: Is the atom log-log concave? -
is_incr(MinEntries)
: The atom is weakly increasing in every argument. -
is_decr(MinEntries)
: The atom is not weakly decreasing in any argument. -
is_pwl(MinEntries)
: Isx
piecewise linear? -
.grad(MinEntries)
: Gives the (sub/super)gradient of the atom w.r.t. each variable -
.column_grad(MinEntries)
: Gives the (sub/super)gradient of the atom w.r.t. each column variable
Slots
x
An Expression representing a vector or matrix.
axis
(Optional) The dimension across which to apply the function:
1
indicates rows,2
indicates columns, andNA
indicates rows and columns. The default isNA
.keepdims
(Optional) Should dimensions be maintained when applying the atom along an axis? If
FALSE
, result will be collapsed into ann x 1
column vector. The default isFALSE
.