<< mps_init2 mpscilab mps_inv >>

mpscilab >> mpscilab > mps_int

mps_int

Round toward zero

Calling Sequence

mps_int( rop, op )
rop = mps_int( op )

Overloaded usage:

rop = int( op )

Arguments

rop, op

multi-precision matrix

Description

Returns the integer part of op.

mps_int( rop, op )

Set each element of rop to the integer part of the corresponding element of op.

rop = mps_int( op )

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

rop = int( op )

Overloaded Scilab primitive int(). 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_int(mpsA)

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

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

See Also

<< mps_init2 mpscilab mps_inv >>