comparison test/LazyTensors/lazy_tensor_test.jl @ 1726:471a948cd2b2 rename_module

Rename project from Sbplib to Diffinitive
author Vidar Stiernström <vidar.stiernstrom@gmail.com>
date Sat, 07 Sep 2024 12:11:53 -0700
parents aa72f067e771
children
comparison
equal deleted inserted replaced
1725:8317252e4535 1726:471a948cd2b2
1 using Test 1 using Test
2 using Sbplib.LazyTensors 2 using Diffinitive.LazyTensors
3 3
4 @testset "Generic Mapping methods" begin 4 @testset "Generic Mapping methods" begin
5 struct DummyMapping{T,R,D} <: LazyTensor{T,R,D} end 5 struct DummyMapping{T,R,D} <: LazyTensor{T,R,D} end
6 LazyTensors.apply(m::DummyMapping{T,R,D}, v, I::Vararg{Any,R}) where {T,R,D} = :apply 6 LazyTensors.apply(m::DummyMapping{T,R,D}, v, I::Vararg{Any,R}) where {T,R,D} = :apply
7 @test range_dim(DummyMapping{Int,2,3}()) == 2 7 @test range_dim(DummyMapping{Int,2,3}()) == 2