Learn R Programming

CVXR (version 1.9.1)

inv_prod: Reciprocal of product of entries

Description

Computes the reciprocal of the product of entries. Equivalent to geo_mean(x)^(-n) where n is the number of entries.

Usage

inv_prod(x, approx = TRUE)

Value

A convex Expression representing the reciprocal product.

Arguments

x

An Expression or numeric value (must have positive entries).

approx

Logical; if TRUE (default), use SOC approximation.