Mercurial > hg > octave-nkf
diff liboctave/PermMatrix.h @ 8958:6ccc12cc65ef
implement raising a permutation matrix to integer power
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Wed, 11 Mar 2009 14:07:24 +0100 |
parents | eb63fbe60fab |
children | 3c1762c7e787 |
line wrap: on
line diff
--- a/liboctave/PermMatrix.h +++ b/liboctave/PermMatrix.h @@ -97,6 +97,9 @@ // Determinant, i.e. the sign of permutation. octave_idx_type determinant (void) const; + // Efficient integer power of a permutation. + PermMatrix power (octave_idx_type n) const; + bool is_col_perm (void) const { return _colp; } bool is_row_perm (void) const { return !_colp; }