Handbook
Glossary
negative-power-matrix ( m n -- * )
Extra matrix operations
Prev:
sample-covariance-matrix ( matrix -- cov )
Next:
non-square-determinant ( m n -- * )
Vocabulary
math
.
matrices
.
extras
Inputs
m
a
matrix
n
an
integer
Outputs
None
Word description
Throws a
negative-power-matrix
error.
Error description
Given the semantics of
m^n
, negative exponents are not within the domain of the power matrix function.
Definition
IN:
math.matrices.extras
ERROR:
negative-power-matrix
m n
;
Methods
USING:
accessors
formatting
kernel
math.matrices.extras
math.text.english
summary
;
M:
negative-power-matrix
summary
n>>
dup
ordinal-suffix
"%s%s power of a matrix is undefined"
sprintf
;