2 matfill - fill a matrix with specified value or values
15 For any matrix m, matfill(m, x) assigns to every element of m the
16 value x. For a square matrix m, matfill(m, x, y) assigns the value
17 x to the off-diagonal elements, y to the diagonal elements.
20 ; mat A[3]; matfill(A, 2); print A
21 mat [3] (3 elements, 3 nonzero):
26 ; mat B[2, 1:2]; matfill(B,3,4); print B
27 mat [2,1:2] (4 elements, 4 nonzero):
40 mat, ismat, matdim, matmax, matmin, mattrans, mattrace, matsum,
41 det, inverse, isident, test, config, search, rsearch, reverse, copy,
42 blkcpy, dp, cp, randperm, sort
44 ## Copyright (C) 1999-2006 Landon Curt Noll
46 ## Calc is open software; you can redistribute it and/or modify it under
47 ## the terms of the version 2.1 of the GNU Lesser General Public License
48 ## as published by the Free Software Foundation.
50 ## Calc is distributed in the hope that it will be useful, but WITHOUT
51 ## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
52 ## or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
53 ## Public License for more details.
55 ## A copy of version 2.1 of the GNU Lesser General Public License is
56 ## distributed with calc under the filename COPYING-LGPL. You should have
57 ## received a copy with calc; if not, write to Free Software Foundation, Inc.
58 ## 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
60 ## @(#) $Revision: 30.1 $
61 ## @(#) $Id: matfill,v 30.1 2007/03/16 11:10:42 chongo Exp $
62 ## @(#) $Source: /usr/local/src/cmd/calc/help/RCS/matfill,v $
64 ## Under source code control: 1995/10/25 04:03:45
65 ## File existed as early as: 1995
67 ## chongo <was here> /\oo/\ http://www.isthe.com/chongo/
68 ## Share and enjoy! :-) http://www.isthe.com/chongo/tech/comp/calc/