<< mps_transpose mpscilab Comparison functions >>

mpscilab >> mpscilab > mps_zeros

mps_zeros

Create and initialize a multi-precision matrix filled with zeros

Calling Sequence

rop = mps_zeros( prec )
rop = mps_zeros( m1, n1, prec )
mps_zeros( rop )

Overloaded usage:

rop = zeros( op )

Arguments

rop, op

multi-precision matrix

m1, n1, prec

integers

Description

Create and initialize a multri-precision matrix filled with the value 0

mps_zeros( prec )

Create and initialize a scalar of precision prec initialized to 0.

rop = mps_zeros( m1, n1, prec )

Create and initialize a matrix of size (m1,n1) with precision prec filled with zeros.

rop = mps_zeros( rop )

Set every element of rop to 0.

rop = zeros( op )

Overloaded Scilab primitive zeros(). Create a multi-precision matrix the same size and precision as op filled with zeros.

Restrictions

The precision must be two bits or higher.

Examples

mpsA = mps_zeros(100)
mpsA = mps_zeros(10,10,100)

//Set every elements of mpsB to 1.
mpsB = mps_init(10,10,100)
mps_zeros(mpsB)

//Overloaded usage
mpsA = zeros(mpsB)

See Also

<< mps_transpose mpscilab Comparison functions >>