Round down
mps_floor( rop, op ) rop = mps_floor( op )
Overloaded usage:
rop = floor( op )
multi-precision matrix
Returns the nearest rounded down integer of op
.
Set each element of rop
to the nearest
rounded down integer of the corresponding element of op
.
Creates a multi-precision matrix the same size and precision as
op
containing the result.
Overloaded Scilab primitive floor(). Create a multi-precision
matrix the same size and precision as op
containing the result.
// Standard usage. A = [1.1 2; 3.9 4] mpsA = mps_init2(A,100) rop = mps_init(2,2,100) rop = mps_floor(mpsA) // In-place computation. A = [1.1 2; 3.9 4] mpsA = mps_init2(A,100) mps_floor(mpsA, mpsA) // Overloaded usage. A = [1.1 2; 3.9 4] mpsA = mps_init2(A,100) rop = floor(mpsA) | ![]() | ![]() |