cvxr_var: Variance of an expression

View source: R/085_atoms_stats.R

cvxr_varR Documentation

Variance of an expression

Description

Computes the variance. Only supports full reduction (axis = NULL).

Usage

cvxr_var(x, axis = NULL, keepdims = FALSE, ddof = 0)

Arguments

x

An Expression or numeric value.

axis

NULL only (axis reduction not yet supported).

keepdims

Logical; keep reduced dimension?

ddof

Degrees of freedom correction (default 0, population variance).

Value

An Expression representing the variance.


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