# HG changeset patch # User Jordi GutiƩrrez Hermoso # Date 1353688291 18000 # Node ID 7f4e7073b2e085d4ae55573d28f770e7534b0dea # Parent 773892abfd93493e880d32d6a7038e326065368b doc: fix description of k in triu/tril (bug #37796) * tril.cc (Ftril): Reword explanation of @var{k} diff -r 773892abfd93 -r 7f4e7073b2e0 src/DLD-FUNCTIONS/tril.cc --- a/src/DLD-FUNCTIONS/tril.cc Mon Nov 12 08:09:43 2012 -0500 +++ b/src/DLD-FUNCTIONS/tril.cc Fri Nov 23 11:31:31 2012 -0500 @@ -356,9 +356,9 @@ The default value of @var{k} is zero, so that @code{triu} and\n\ @code{tril} normally include the main diagonal as part of the result.\n\ \n\ -If the value of @var{k} is negative, additional elements above (for\n\ -@code{tril}) or below (for @code{triu}) the main diagonal are also\n\ -selected.\n\ +If the value of @var{k} is nonzero integer, the selection of elements\ +starts at an offset of @var{k} diagonals above or below the main\ +diagonal; above for positive @var{k} and below for negative @var{k}.\ \n\ The absolute value of @var{k} must not be greater than the number of\n\ sub-diagonals or super-diagonals.\n\