<< mps_add mpscilab mps_clear >>

mpscilab >> mpscilab > mps_ceil

mps_ceil

Round up

Calling Sequence

mps_ceil( rop, op )
rop = mps_ceil( op )

Overloaded usage:

rop = ceil( op )

Arguments

rop, op

multi-precision matrix

Description

Returns the nearest rounded up integer of op.

mps_ceil( rop, op )

Set each element of rop to the nearest rounded up integer of the corresponding element of op.

rop = mps_ceil( op )

Creates a multi-precision matrix the same size and precision as op containing the result.

rop = ceil( op )

Overloaded Scilab primitive ceil(). Create a multi-precision matrix the same size and precision as op containing the result.

Examples

// Standard usage.
A = [1.1 2; 3.9 4]
mpsA = mps_init2(A,100)
rop = mps_init(2,2,100)
rop = mps_ceil(mpsA)

// In-place computation.
A = [1.1 2; 3.9 4]
mpsA = mps_init2(A,100)
mps_ceil(mpsA, mpsA)

// Overloaded usage.
A = [1.1 2; 3.9 4]
mpsA = mps_init2(A,100)
rop = ceil(mpsA)

See Also

<< mps_add mpscilab mps_clear >>