Mercurial > repos > public > sbplib
diff reshapeKronVectorTest.m @ 163:51aaf67a7df5 feature/grids
Fixed naming and added functions for converting vectors to matrices for structured grid.
author | Jonatan Werpers <jonatan@werpers.com> |
---|---|
date | Mon, 22 Feb 2016 13:55:19 +0100 |
parents | c75c03f692b3 |
children |
line wrap: on
line diff
--- a/reshapeKronVectorTest.m Mon Feb 22 13:34:50 2016 +0100 +++ b/reshapeKronVectorTest.m Mon Feb 22 13:55:19 2016 +0100 @@ -1,4 +1,4 @@ -function tests = funcToMatrixTest() +function tests = reshapeKronVectorTest() tests = functiontests(localfunctions); end @@ -6,7 +6,7 @@ inGf = [1 2 3 4 5]'; inM = 5; out = [1 2 3 4 5]'; - testCase.verifyEqual(grid.funcToMatrix(inGf, inM),out); + testCase.verifyEqual(reshapeKronVector(inGf, inM),out); end function test2D(testCase) @@ -18,7 +18,7 @@ out(2,1) = 21; out(2,2) = 22; - testCase.verifyEqual(grid.funcToMatrix(inGf, inM),out); + testCase.verifyEqual(reshapeKronVector(inGf, inM),out); end function test3D(testCase) @@ -34,7 +34,7 @@ out(2,2,1) = 221; out(2,2,2) = 222; - testCase.verifyEqual(grid.funcToMatrix(inGf, inM),out); + testCase.verifyEqual(reshapeKronVector(inGf, inM),out); end function testNonSquare(testCase) @@ -91,5 +91,5 @@ out(2,3,3) = 233; out(2,3,4) = 234; - testCase.verifyEqual(grid.funcToMatrix(inGf, inM), out); + testCase.verifyEqual(reshapeKronVector(inGf, inM), out); end \ No newline at end of file