Close
Close window
Mul - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Mozilla Firefox.
Maplesoft logo
Maplesoft logo

Online Help

All Products Maple MapleSim


[フレーム] [フレーム]

Threads

Mul

a parallel implementation of mul

Calling Sequence

Mul( f,i = m..n )

Mul( f,i = x )

Mul( f,i in x )

Mul[ tasksize = s ]( ... )

Parameters

f

-

(expression)

i

-

(name)

m, n

-

numeric value

x

-

(expression)

s

-

(optional, posint) maximum task size

Description

The Mul command is a parallel implementation of the mul command. For a complete description of the calling sequence of Mul, see the mul help page.

Mul is implemented using the Task programming model.

Mul attempts to determine how to divide the input into separate tasks to spread the work across all available cores. However in some situations Mul may not choose the optimal size. In particular a small number of long running tasks may not be spread evenly over all threads. In this case, you can specify the maximum task size using the tasksize option. Mul will divide the input into tasks that compute at most tasksize elements within a single task.

Examples

>

withThreads:

>

Muli,i=1..5

120

(1)
>

Lseqi,i=1..5

L1,2,3,4,5

(2)
>

Mulxi,i=L

x1x2x3x4x5

(3)
>

Muli,i=0..

1

(4)


Download Help Document

AltStyle によって変換されたページ (->オリジナル) /