<< overloaded_extraction mpscilab mps_abs >>

mpscilab >> mpscilab > overloaded_insertion

overloaded_insertion

Overloaded Scilab insertion operator

Calling Sequence

rop(i) = op
rop(i,j) = op

Arguments

op

multi-precision or double scalar

Description

Insert elements of op into rop.

Limitations

The : symbol cannot be used when using the overloaded insertion.

Usage notes

Compared to most overloaded functions, the overloaded insertion has very little additional overhead over the non-overloaded case when inserting a scalar.

Examples

// Standard usage.
A = [1 -2; 3 -4]
mpsA = mps_init2(A,100)
mpsB = mps_init2(4,100)
mpsA(2) = mpsB
mpsA(2,2) = mpsB
mpsA(1,2) = 10

See Also

<< overloaded_extraction mpscilab mps_abs >>