conv function

Discrete Convolution

Discrete Convolution

The 1-D discrete convolution of two vectors. methods

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.

Returns

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)
  • Maintainer: Anqi Fu
  • License: Apache License 2.0 | file LICENSE
  • Last published: 2024-11-07