Mercurial > repos > public > sbplib_julia
comparison test/ext/sparse_arrays_test.jl @ 1722:1dd64b46ca2a feature/lazy_tensors/sparse_conversions
Fix types used for boundary identifiers in tests
author | Vidar Stiernström <vidar.stiernstrom@gmail.com> |
---|---|
date | Thu, 05 Sep 2024 08:38:01 -0700 |
parents | 3e9c3986930d |
children | 7274ec5050a0 |
comparison
equal
deleted
inserted
replaced
1721:7379f492c4b3 | 1722:1dd64b46ca2a |
---|---|
22 | 22 |
23 Mv = M*reshape(v,:) | 23 Mv = M*reshape(v,:) |
24 @test Mv ≈ reshape(Δ*v,:) | 24 @test Mv ≈ reshape(Δ*v,:) |
25 end | 25 end |
26 | 26 |
27 @testset let dₙ = normal_derivative(g, stencil_set,CartesianBoundary{1,Lower}()), M = sparse(dₙ) | 27 @testset let dₙ = normal_derivative(g, stencil_set,CartesianBoundary{1,LowerBoundary}()), M = sparse(dₙ) |
28 @test ndims(M) == 2 | 28 @test ndims(M) == 2 |
29 @test size(M) == (30,20*30) | 29 @test size(M) == (30,20*30) |
30 | 30 |
31 v = rand(size(g)...) | 31 v = rand(size(g)...) |
32 Mv = M*reshape(v,:) | 32 Mv = M*reshape(v,:) |