MATRIX (
kmatrix
) functions
LIBRARY ROUTINE
lmpow - compute positive integral power of a matrix
LIBRARY CALL
int lmpow(kobject in_obj, int pwr, kobject out_obj)
INPUT
in_obj
- input matrix object, must be square pow - non-negative integer power
OUTPUT
out_obj
- output matrix object
RETURN VALUE
TRUE (1) on success, FALSE (0) otherwise
DESCRIPTION
lmpow raises a square input matrix to a non-negative integral power by multiplying the matrix with itself. A power of zero yields the unit matrix.
ADDITIONAL INFORMATION
none
EXAMPLES
none
SIDE EFFECTS
none
RESTRICTIONS
Restrictions on data or input as applicable
MODIFICATION
none
FILES
$MATRIX/objects/library/kmatrix/src/lmpow.c
SEE ALSO
kmatrix(3)
COPYRIGHT
Copyright (C) 1993 - 1997, Khoral Research, Inc. ("KRI") All rights reserved.