Mercurial > repos > public > sbplib
comparison reshapeKronVector.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 |
comparison
equal
deleted
inserted
replaced
162:c75c03f692b3 | 163:51aaf67a7df5 |
---|---|
1 % Takes a grid function and reshapes it into a matrix of shape m. | 1 % Takes a grid function and reshapes it into a matrix of shape m. |
2 % Called by class methods. | 2 function F = reshapeKronVector(gf, m) |
3 function F = funcToMatrix(gf, m) | |
4 D = length(m); | 3 D = length(m); |
5 | 4 |
6 if D == 1 | 5 if D == 1 |
7 F = gf; | 6 F = gf; |
8 return | 7 return |