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

max_elemwise

Elementwise Maximum


Description

The elementwise maximum.

Usage

max_elemwise(arg1, arg2, ...)

Arguments

arg1

An Expression, vector, or matrix.

arg2

An Expression, vector, or matrix.

...

Additional Expression objects, vectors, or matrices.

Value

An Expression representing the elementwise maximum of the inputs.

Examples

c <- matrix(c(1,-1))
prob <- Problem(Minimize(max_elemwise(t(c), 2, 2 + t(c))[2]))
result <- solve(prob)
result$value

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.