changeset 1878:b12e28a03b2e refactor/lazy_tensors/elementwise_ops

Add missing newline
author Jonatan Werpers <jonatan@werpers.com>
date Mon, 27 Jan 2025 17:10:59 +0100
parents 21e5fe1545c0
children 765f42559c47
files src/LazyTensors/lazy_tensor_operations.jl test/LazyTensors/lazy_tensor_operations_test.jl
diffstat 2 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/LazyTensors/lazy_tensor_operations.jl	Mon Jan 27 16:56:04 2025 +0100
+++ b/src/LazyTensors/lazy_tensor_operations.jl	Mon Jan 27 17:10:59 2025 +0100
@@ -67,6 +67,7 @@
 range_size(tm::TensorNegation) = range_size(tm.tm)
 domain_size(tm::TensorNegation) = domain_size(tm.tm)
 
+
 """
     TensorSum{T,R,D,...} <: LazyTensor{T,R,D}
 
--- a/test/LazyTensors/lazy_tensor_operations_test.jl	Mon Jan 27 16:56:04 2025 +0100
+++ b/test/LazyTensors/lazy_tensor_operations_test.jl	Mon Jan 27 17:10:59 2025 +0100
@@ -168,6 +168,10 @@
         @test ((A-B)*v)[i] == 2*v[i] - 3*v[i]
     end
 
+    for i ∈ eachindex(v)
+        @test ((A+B)'*v)[i] == 2*v[i] + 3*v[i]
+    end
+
 
     @test range_size(A+B) == range_size(A) == range_size(B)
     @test domain_size(A+B) == domain_size(A) == domain_size(B)