Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 3ed52bbf authored by hhakim's avatar hhakim
Browse files

Add a unit test for matfaust LazyLinearOp.pagemtimes.

parent 2c3cd2a1
Branches
Tags 3.35.18
No related merge requests found
Pipeline #834127 skipped
...@@ -132,6 +132,17 @@ classdef LazyLinearOpTest < matlab.unittest.TestCase ...@@ -132,6 +132,17 @@ classdef LazyLinearOpTest < matlab.unittest.TestCase
end end
function testpagemtimes(this)
M = rand(size(this.lop, 2), 15, 2, 2)
lmul = pagemtimes(this.lop, M);
mul_ref = pagemtimes(this.lopA , M);
for i=1:2
for j=1:2
this.verifyEqual(lmul(:,:, i, j), mul_ref(:, :, i, j), 'AbsTol', 1e-6)
end
end
end
function testCat(this) function testCat(this)
import matfaust.lazylinop.LazyLinearOp import matfaust.lazylinop.LazyLinearOp
lop = this.lop; lop = this.lop;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment