Matrix - Maple Help
For the best experience, we recommend viewing online help using Google Chrome or Microsoft Edge.

Online Help

RandomTools Flavor: Matrix

describe a Matrix of random objects

 

Calling Sequence

Parameters

Description

Examples

Compatibility

Calling Sequence

'Matrix'(flav, r, c, ... )

Parameters

flav

-

random flavor

r

-

positive integer or a flavor that generates a positive integer

c

-

positive integer or a flavor that generates a positive integer

density

-

a numeric value with 0 <= density <= 1

...

-

additional options to the Matrix constructor

Description

• 

The flavor 'Matrix' describes a Matrix with r rows and c columns.  Each entry is described by the given random flavor, flav.  The default flavor is integer and the default value for r and c is 10.

• 

The density value is a probability that an entry will be assigned a value.  By default, this value is 1.

• 

Additional arguments can be specified that will be passed to the Matrix constructor.  For example, datatype, shape, etc.

  

This flavor can be used as an argument to RandomTools[Generate] or as part of a structured flavor.

Examples

(1)

(2)

(3)

Compatibility

• 

The RandomTools Flavor: Matrix command was introduced in Maple 18.

• 

For more information on Maple 18 changes, see Updates in Maple 18.

See Also

flavor/structured

Matrix

rand

RandomTools

RandomTools[Generate]

 


Download Help Document