UNIFORM

This procedure creates a new matrix filled with uniformly distributed random values greater than or equal to zero and less than 1.

Usage

The UNIFORM stored procedure has the following syntax:
UNIFORM(matrixOut,numberOfRows,numberOfColumns)
Parameters
matrixOut
The name of the output matrix.
Type: NVARCHAR(ANY)
numberOfRows
The number of rows to include in the new matrix.
Type: INT4
numberOfColumns
The number of columns to include in the new matrix.
Type: INT4
Returns
BOOLEAN TRUE if successful.

Details

This procedure uses drand48_r.

Examples

call nzm..uniform('A', 50,50);
call nzm..list_matrices();
call nzm..delete_matrix('A');

 UNIFORM
---------
 t
(1 row)

 LIST_MATRICES
---------------
 A
(1 row)

 DELETE_MATRIX
---------------
 t
(1 row)