RandomTools Flavor: Matrix
describe a Matrix of random objects
Calling Sequence
Parameters
Description
Examples
Compatibility
'Matrix'(flav, r, c, ... )
flav
-
random flavor
r
positive integer or a flavor that generates a positive integer
c
density
a numeric value with 0 <= density <= 1
...
additional options to the Matrix constructor
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.
with⁡RandomTools:
Generate⁡Matrix⁡integer,3,3
−97285985753327915651053−276532064796−112481638417−288425344624459444310976−139421155293116576431985−100885603451
Generate⁡Matrix⁡rational⁡denominator=30,2,2
−2152930215−25
H≔Generate⁡Matrix⁡float⁡range=0..10,method=uniform,5,5,datatype=float8
H≔8.234578283272937.060460880196097.577401305783336.557406991565871.418863386272150.9713178123584751.711866878115626.787351548577739.594924263929038.002804688888000.4617139063115396.554778901775579.339932477575517.922073295595544.853756487228412.769229849608903.922270195341688.491293058687779.157355251890679.571669482429460.3183284637742077.431324681249160.3571167857418964.217612826262759.70592781760616
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