Mentions légales du service

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

Add unit tests for matfaust.lazylinop.diag.

parent a3d0d56c
No related branches found
No related tags found
No related merge requests found
classdef LazyLinearOpDiagTest < LazyLinearOpTest
properties (Constant = true)
%
end
methods(TestClassSetup)
end
methods (TestMethodSetup)
function addFaustToPath(this)
addpath(this.faust_paths{:})
set_path
end
function instantiateTestFaust(this)
import matfaust.lazylinop.aslazylinearoperator
import matfaust.lazylinop.diag
v = rand(10, 1);
w = rand(10, 1);
this.lop = diag(v, -2);
this.lop2 = diag(v, 2);
this.lopA = full(this.lop);
this.lop2A = full(this.lop2);
this.lop3 = diag(w, 2);
this.lop3A = full(this.lop3);
end
end
methods(TestMethodTeardown)
end
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment