The 1-D discrete convolution of two vectors.
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)
#> as(<lgCMatrix>, "dgCMatrix") is deprecated since Matrix 1.5-0; do as(., "dMatrix") instead
result$value
#> [1] -Inf
result$getValue(x)
#> [1] NA