Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

conv

Discrete Convolution


Description

The 1-D discrete convolution of two vectors.

Usage

conv(lh_exp, rh_exp)

Arguments

lh_exp

An Expression or vector representing the left-hand value.

rh_exp

An Expression or vector representing the right-hand value.

Value

An Expression representing the convolution of the input.

Examples

set.seed(129)
x <- Variable(5)
h <- matrix(stats::rnorm(2), nrow = 2, ncol = 1)
prob <- Problem(Minimize(sum(conv(h, x))))
result <- solve(prob)
result$value
result$getValue(x)

CVXR

Disciplined Convex Optimization

v1.0-10
Apache License 2.0 | file LICENSE
Authors
Anqi Fu [aut, cre], Balasubramanian Narasimhan [aut], David W Kang [aut], Steven Diamond [aut], John Miller [aut], Stephen Boyd [ctb], Paul Kunsberg Rosenfield [ctb]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.