cvxr_mean: Mean of an expression

View source: R/085_atoms_stats.R

cvxr_meanR Documentation

Mean of an expression

Description

Computes the arithmetic mean of an expression along an axis.

Usage

cvxr_mean(x, axis = NULL, keepdims = FALSE)

Arguments

x

An Expression or numeric value.

axis

NULL (all), 1 (row-wise), or 2 (column-wise).

keepdims

Logical; keep reduced dimension?

Value

An Expression representing the mean.


CVXR documentation built on March 6, 2026, 9:10 a.m.