From 79a5815c02966486a6bf94cef01f5aba5440307f Mon Sep 17 00:00:00 2001 From: Vedant Puri Date: Mon, 6 Jan 2025 06:24:46 -0500 Subject: [PATCH] fix typo --- src/trans_operators.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/trans_operators.jl b/src/trans_operators.jl index 2016a2c..6d61978 100644 --- a/src/trans_operators.jl +++ b/src/trans_operators.jl @@ -31,7 +31,7 @@ function Spaces.truncationOp(Vh::TransformedFourierSpace{<:Any,D}, diag[(Colon() for _ in 1:d-1)..., idx, (Colon() for i=d+1:D)...] .= false end - diag = points(Vh)[1] isa AbstractGPUArray ? gpu_device(diag) : diag + diag = points(Vh)[1] isa AbstractGPUArray ? gpu_device()(diag) : diag DiagonalOperator(vec(diag)) end