max_elemwise function

Elementwise Maximum

Elementwise Maximum

The elementwise maximum. methods

max_elemwise(arg1, arg2, ...)

Arguments

  • arg1: An Expression , vector, or matrix.
  • arg2: An Expression , vector, or matrix.
  • ...: Additional Expression objects, vectors, or matrices.

Returns

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
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07