total_variation: Total variation of a vector or matrix

View source: R/079_atoms_total_variation.R

total_variationR Documentation

Total variation of a vector or matrix

Description

Computes total variation using L1 norm of discrete gradients for vectors and L2 norm of discrete gradients for matrices.

Usage

total_variation(value, ...)

Arguments

value

An Expression or numeric constant (vector or matrix)

...

Additional matrix expressions extending the third dimension

Value

An Expression representing the total variation


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