RANDOM_MATRIX _ _ _ _ _ _ _ _ _ _ _ _ operator
<r>,<c>,<limit> :- positive integers.
random_matrixcreates an <r> by <c> matrix with random entries in the range -limit <entry <limit.
Switches:
imaginary:- if on then matrix entries are x+i*y where -limit <x,y <<limit>.
not_negative:- if on then 0 <entry <<limit>. In the imagina ry case we have 0 <x,y <<limit>.
only_integer:- if on then each entry is an integer. In the imaginary case x and y are integers.
symmetric:- if on then the matrix is symmetric.
upper_matrix:- if on then the matrix is upper triangular.
lower_matrix:- if on then the matrix is lower triangular.
on rounded; random_matrix(3,3,10); [ - 8.11911717343 - 5.71677292768 0.620580830035 ] [ ] [ - 0.032596262422 7.1655452861 5.86742633837 ] [ ] [ - 9.37155438255 - 7.55636708637 - 8.88618627557] on only_integer, not_negative, upper_matrix, imaginary; random_matrix(4,4,10); [70*i + 15 28*i + 8 2*i + 79 27*i + 44] [ ] [ 0 46*i + 95 9*i + 63 95*i + 50] [ ] [ 0 0 31*i + 75 14*i + 65] [ ] [ 0 0 0 5*i + 52 ]