Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

SpecialIndex-class

The SpecialIndex class.


Description

This class represents indexing using logical indexing or a list of indices into a matrix.

Usage

## S4 method for signature 'Expression,index,missing,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'Expression,missing,index,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'Expression,index,index,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'Expression,matrix,index,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'Expression,index,matrix,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'Expression,matrix,matrix,ANY'
x[i, j, ..., drop = TRUE]

## S4 method for signature 'Expression,matrix,missing,ANY'
x[i, j, ..., drop = TRUE]

SpecialIndex(expr, key)

## S4 method for signature 'SpecialIndex'
name(x)

## S4 method for signature 'SpecialIndex'
is_atom_log_log_convex(object)

## S4 method for signature 'SpecialIndex'
is_atom_log_log_concave(object)

## S4 method for signature 'SpecialIndex'
get_data(object)

## S4 method for signature 'SpecialIndex'
.grad(object)

Arguments

x, object

An Index object.

i, j

The row and column indices of the slice.

...

(Unimplemented) Optional arguments.

drop

(Unimplemented) A logical value indicating whether the result should be coerced to the lowest possible dimension.

expr

An Expression representing a vector or matrix.

key

A list containing the start index, end index, and step size of the slice.

Methods (by generic)

  • name: Returns the index in string form.

  • is_atom_log_log_convex: Is the atom log-log convex?

  • is_atom_log_log_concave: Is the atom log-log concave?

  • get_data: A list containing key.

  • .grad: Gives the (sub/super)gradient of the atom w.r.t. each variable

Slots

expr

An Expression representing a vector or matrix.

key

A list containing the start index, end index, and step size of the slice.


CVXR

Disciplined Convex Optimization

v1.0-10
Apache License 2.0 | file LICENSE
Authors
Anqi Fu [aut, cre], Balasubramanian Narasimhan [aut], David W Kang [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb], Paul Kunsberg Rosenfield [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.