Mercurial > repos > public > sbplib_julia
comparison test/testSbpOperators.jl @ 572:64f1b269e9fc feature/boundary_ops
Implement apply_transpose for different regions and remove boundschecks to simplify
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Tue, 01 Dec 2020 16:02:44 +0100 |
parents | a8fe91861116 |
children | 4e2490f568aa |
comparison
equal
deleted
inserted
replaced
571:205238c342da | 572:64f1b269e9fc |
---|---|
232 @test (e_l*v)[] == v[1] | 232 @test (e_l*v)[] == v[1] |
233 @test (e_r*v)[] == v[end] | 233 @test (e_r*v)[] == v[end] |
234 @test (e_r*v)[1] == v[end] | 234 @test (e_r*v)[1] == v[end] |
235 @test e_l'*u == [u[]; zeros(10)] | 235 @test e_l'*u == [u[]; zeros(10)] |
236 @test e_r'*u == [zeros(10); u[]] | 236 @test e_r'*u == [zeros(10); u[]] |
237 @test_throws BoundsError (e_l*v)[2] | |
238 @test_throws BoundsError (e_l'*u)[20] | |
239 | 237 |
240 # 2D | 238 # 2D |
241 v = rand(11, 15) | 239 v = rand(11, 15) |
242 | 240 |
243 @test e_w*v == v[1,:] | 241 @test e_w*v == v[1,:] |