GET_NUM_COLS

This procedure returns the number of columns in the specified matrix.

Usage

The GET_NUM_COLS stored procedure has the following syntax:
GET_NUM_COLS(mat_name)
Parameters
mat_name
The name of the matrix.
Returns
INT4 The number of columns in the matrix.

Examples

CALL nzm..shape('1,2,3,4,5,0,6,7,8', 3, 3, 'A');
CALL nzm..get_num_cols('A');
CALL nzm..delete_matrix('A');

 SHAPE
-------
 t
(1 row)

 GET_NUM_COLS
--------------
 3
(1 row)

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