<< mps_exp mpscilab mps_exp2 >>

mpscilab >> mpscilab > mps_exp10

mps_exp10

Element-wise power of 10

Calling Sequence

mps_exp10( rop, op )
rop = mps_exp10( op )

Overloaded usage:

rop = exp10( op )

Arguments

rop

multi-precision matrix

op

Scilab or multi-precision matrix

Description

Computes the element-wise power of 10 of op and returns the result in rop.

mps_exp10( rop, op )

Returns the element-wise power of 10 (10^op) of the entries of op.

rop = mps_exp10( op )

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

Usage notes

Like most mps functions the mps_exp10( rop, op ) form is faster and can reuse the space of an existing matrix but requires an already initialized operand. Also, the same form can be used to perform an in-place operation when rop and op are the same.

Examples

// Standard usage.
A = [1 2; 3 4]
mpsA = mps_init2(A,100)
rop = mps_exp10(mpsA)

// Standard usage using a pre-initialized matrix.
A = [1 2; 3 4]
mpsA = mps_init2(A,100)
rop = mps_init(2,2,100)
mps_exp10(rop,mpsA)

// Same but using a Scilab matrix as input.
A = [1 2; 3 4]
rop = mps_init(2,2,100)
mps_exp10(rop,A)

// In-place computation.
A = [1 2; 3 4]
mpsA = mps_init2(A,100)
mps_exp10(mpsA)

See Also

<< mps_exp mpscilab mps_exp2 >>