MemCom Reference Manual > MemCom ftn Fortran API > Sparse Table Functions > mcf_st_cell_num_elements

Name

mcf_st_cell_num_elements — Get the number of data elements of a sparse-table cell

Synopsis

subroutine mcf_st_cell_num_elements(dsid,row_index,column_index,num_elements)
integer*4 dsid
integer*8 row_index
integer*8 column_index
integer*8 num_elements

Description

mcf_st_cell_num_elements gets, for the sparse-table dataset identified by dsid, the number of data elements of the cell identified by the row index row_index and the column index column_index.

Parameters

dsid (input)

Dataset identifier.

row_index (input)

Row index, starting at 1.

column_index (input)

Index of the column whose number of data elements is requested. Column indices start at 1.

num_elements (output)

If no error occurred, the number of data elements of this cell is returned. For empty cells, 0 is returned. For fixed-sized non-empty cells, the return value is equal to the num_elements parameter as obtained by calling mcf_st_col_attributes. If an error occured, a negative value indicating the MemCom error number is returned.

See Also

mcf_st_col_attributes