Determinant and permanent: Difference between revisions
m
→{{header|Stata}}
(+Stata) |
|||
Line 2,128:
Two auxiliary functions: '''range1(n,i)''' returns the column vector with numbers 1 to n except i is removed.
And '''submat(a,i,j)''' returns matrix a with row i and column j removed.
For x=-1, the main function '''sumrec(a,x)''' computes the determinant of a by
<lang>real vector range1(real scalar n, real scalar i) {
|