view flat_index.m @ 165:5dad3b754c18 feature/grids

Made reshape KronVector more general. Updated name and tests.
author Jonatan Werpers <jonatan@werpers.com>
date Tue, 23 Feb 2016 10:31:19 +0100
parents 48b6fb693025
children
line wrap: on
line source

function I = flat_index(n,i,j)
    I = i + (j - 1)*n;
end