Navigation

Operators and Keywords

Function List:

C++ API

perms.m File Reference


Functions

 if (n==1) A
 A (Bidx, 1:n-1)
 A (k+Bidx, i+1:n)
endfor A (k+Bidx, 2:n)

Variables

function A
endif v = v(:)
 n = length (v)
else B = perms (v(1:n-1))
 Bidx = 1:size (B, 1)
 k = size (B, 1)
for i

Function Documentation

endfor A ( k Bidx,
2:n   
)

A ( k Bidx,
i+1:n   
)

A ( Bidx  ,
1:n-  1 
)

if ( = =1  ) 


Variable Documentation

A

Initial value:

 perms (v)
  if (nargin != 1)
    print_usage ()

else B = perms (v(1:n-1))

Bidx = 1:size (B, 1)

for i

Initial value:

 n-1:-1:2
      A(k+Bidx,1:i-1) = B(Bidx,1:i-1)

k = size (B, 1)

n = length (v)

endif v = v(:)