annotate _FullBNT/KPMtools/subv2indTest.m @ 9:4ea6619cb3f5 tip

removed log files
author matthiasm
date Fri, 11 Apr 2014 15:55:11 +0100
parents b5b38998ef3b
children
rev   line source
matthiasm@8 1 function ndx = subv2indTest(siz,sub)
matthiasm@8 2 %SUBV2IND Linear index from subscript vector.
matthiasm@8 3 % SUBV2IND(SIZ,SUB) returns an equivalent single index corresponding to a
matthiasm@8 4 % subscript vector for an array of size SIZ.
matthiasm@8 5 % If SUB is a matrix, with subscript vectors as rows, then the result is a
matthiasm@8 6 % column vector.
matthiasm@8 7 %
matthiasm@8 8 % This is the opposite of IND2SUBV, so that
matthiasm@8 9 % SUBV2IND(SIZ,IND2SUBV(SIZ,IND)) == IND.
matthiasm@8 10 %
matthiasm@8 11 % See also IND2SUBV, SUB2IND.
matthiasm@8 12
matthiasm@8 13 ndx = subv2indMinka(siz,sub);
matthiasm@8 14 ndx2 = subv2indKPM(siz,sub);
matthiasm@8 15 assert(isequalKPM(ndx,ndx2))