Element-wise factorial
mps_factorial( rop, op ) rop = mps_factorial( op )
multi-precision matrix
Scilab or multi-precision matrix
Computes the element-wise factorial of op
and returns the result in rop
.
Sets every element of rop
to the factorial
of the corresponding element of op
.
rop
must be a pre-initialized matrix of the
same dimension as op
.
Creates a multi-precision matrix the same size and precision as
op
containing the result.
Like most mps functions the mps_factorial( rop, op ) form is faster and
can reuse the space of an existing matrix but requires an already
initialized operand. Also, the same form can be used to perform an in-place
operation when rop
and op
are the
same.