# \#convolution

**URL:** https://discourse.julialang.org/tag/convolution/1142.md

[Latest](https://discourse.julialang.org/latest.md) · [Categories](https://discourse.julialang.org/categories.md) · [Tags](https://discourse.julialang.org/tags.md)

---

## [Convolution of Dependent Random Variables with Copula](https://discourse.julialang.org/t/convolution-of-dependent-random-variables-with-copula/124603)

<div class="topic-metadata">

**Author:** [@rand5](https://discourse.julialang.org/u/rand5)\
**Replies:** 3\
**Last updated:** [January 10, 2025, 1:45pm UTC](https://discourse.julialang.org/t/convolution-of-dependent-random-variables-with-copula/124603 "2025-01-10T13:45:05Z")

</div>

I’m running into domain issues when trying to compute the convolution of two random variables where their joint distribution is defined by a copula. By convolution I mean: f\_{Z}(z) = \\int\_{-\\inf}^{\\inf} f\_{XY}(x,z-x)dx…

---

## [Experiments with LoopVectorization and convolutions](https://discourse.julialang.org/t/experiments-with-loopvectorization-and-convolutions/123188)

<div class="topic-metadata">

**Author:** [@Marco\_Lombardi](https://discourse.julialang.org/u/Marco_Lombardi)\
**Replies:** 24\
**Last updated:** [December 3, 2024, 8:35pm UTC](https://discourse.julialang.org/t/experiments-with-loopvectorization-and-convolutions/123188 "2024-12-03T20:35:27Z")

</div>

I have been doing some experiments with the great LoopVectorization for convolution, and I must admit that in spite of my efforts to manually refactor my code, I have been unable to even approach the speed that this pack…

---

## [Is there a library for a generic convolution function?](https://discourse.julialang.org/t/is-there-a-library-for-a-generic-convolution-function/110329)

<div class="topic-metadata">

**Author:** [@AwesomeQuest](https://discourse.julialang.org/u/AwesomeQuest)\
**Replies:** 1\
**Last updated:** [February 17, 2024, 2:13am UTC](https://discourse.julialang.org/t/is-there-a-library-for-a-generic-convolution-function/110329 "2024-02-17T02:13:23Z")

</div>

I need to do a convolution of BigInts and DSP says that BigFloat isn’t supported when I try.

---

## [Optimizing Direct 2D Convolution Code](https://discourse.julialang.org/t/optimizing-direct-2d-convolution-code/106598)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 14\
**Last updated:** [November 23, 2023, 8:48pm UTC](https://discourse.julialang.org/t/optimizing-direct-2d-convolution-code/106598 "2023-11-23T20:48:40Z")

</div>

I have implemented 2D convolution using direct calculation: using BenchmarkTools; function \_Conv2D!( mO :: Matrix{T}, mI :: Matrix{T}, mK :: Matrix{T} ) where {T \<: AbstractFloat} numRowsI, numColsI = size(mI); …

---

## [Does Flux not support Float16 convolution operation (Flux.NNlib.conv) with CuArray?](https://discourse.julialang.org/t/does-flux-not-support-float16-convolution-operation-flux-nnlib-conv-with-cuarray/99640)

<div class="topic-metadata">

**Author:** [@guixien](https://discourse.julialang.org/u/guixien)\
**Replies:** 1\
**Last updated:** [May 31, 2023, 3:48am UTC](https://discourse.julialang.org/t/does-flux-not-support-float16-convolution-operation-flux-nnlib-conv-with-cuarray/99640 "2023-05-31T03:48:24Z")

</div>

using Flux, CUDA struct filters{T \<: Real} f::AbstractArray{T,3} function filters{T}(f) where T \<: Real new(f) end end Flux.@functor filters And this works: T = Float32 q = filters{T}(cu(rand(50, 1…

---

## [Optimizing Direct 1D Convolution Code](https://discourse.julialang.org/t/optimizing-direct-1d-convolution-code/97658)

<div class="topic-metadata">

**Author:** [@RoyiAvital](https://discourse.julialang.org/u/RoyiAvital)\
**Replies:** 21\
**Last updated:** [April 28, 2023, 2:53pm UTC](https://discourse.julialang.org/t/optimizing-direct-1d-convolution-code/97658 "2023-04-28T14:53:46Z")

</div>

I am trying to create a function for a direct (Not fft() based) 1D convolution. Originally I used the classic implementation: using BenchmarkTools; function \_Conv1D!( vO :: Array{T, 1}, vA :: Array{T, 1}, vB :: Array{…

---

## [Implementing convolution from scratch](https://discourse.julialang.org/t/implementing-convolution-from-scratch/93723)

<div class="topic-metadata">

**Author:** [@skittishdev](https://discourse.julialang.org/u/skittishdev)\
**Replies:** 5\
**Last updated:** [January 29, 2023, 9:43am UTC](https://discourse.julialang.org/t/implementing-convolution-from-scratch/93723 "2023-01-29T09:43:23Z")

</div>

Hello, I already posted this question on Stackoverflow, but decided I’d ask here as well. Please find my question from Stackoverflow pasted below (verbatim). I am trying to implement convolution by hand in Julia. I’m …

---

## [Flux Conv layer method error](https://discourse.julialang.org/t/flux-conv-layer-method-error/92937)

<div class="topic-metadata">

**Author:** [@zeio](https://discourse.julialang.org/u/zeio)\
**Replies:** 4\
**Last updated:** [January 16, 2023, 9:46pm UTC](https://discourse.julialang.org/t/flux-conv-layer-method-error/92937 "2023-01-16T21:46:03Z")

</div>

Hi, I am trying to implement a simple train loop in julia to process images, but can’t make my model work. I create the model using the following code: model = Chain( Conv((3, 3), 3 =\> 32, relu; pad = (1, 1), bias =…

---

## [2D FFT convolution but get inaccurate results](https://discourse.julialang.org/t/2d-fft-convolution-but-get-inaccurate-results/87816)

<div class="topic-metadata">

**Author:** [@maphdze](https://discourse.julialang.org/u/maphdze)\
**Replies:** 9\
**Last updated:** [September 27, 2022, 12:38pm UTC](https://discourse.julialang.org/t/2d-fft-convolution-but-get-inaccurate-results/87816 "2022-09-27T12:38:07Z")

</div>

I am trying to calculate this convlution integral a(x)=\\int{\\varphi(x,x\\prime)}w(x\\prime)\\rm{d}\\it{V\\prime},where \\varphi(x,x\\prime) is a compact support kernel function with a radius \\ell. Currently, \\varphi(x,x\\prime) …
