CREATE_ONES_MATRIX - create a matrix of ones
This procedure creates a matrix with all elements equal to 1.0.
Usage
The CREATE_ONES_MATRIX stored procedure has the following syntax:
- CREATE_ONES_MATRIX(mat_name,numerous,numCols)
- Parameters
- mat_name
- The matrix name.
- numRows
- The number of matrix rows.
- numCols
- The number of matrix columns.
Examples
call nzm..create_ones_matrix('A', 3, 3);
call nzm..print('A');
call nzm..delete_matrix('A' );
CREATE_ONES_MATRIX
--------------------
t
(1 row)
PRINT
----------------------------------------
-- matrix: A --
1,1,1
1,1,1
1,1,1
(1 row)
DELETE_MATRIX
---------------
t
(1 row)