NCEPLIBS-bufr  12.0.0
icvidx.c File Reference

Compute a unique 1-dimensional array index from 2-dimensional indices. More...

Go to the source code of this file.

Functions

int icvidx (int ii, int jj, int numjj)
 Computes a unique 1-dimensional array index from 2-dimensional indices. More...
 

Detailed Description

Compute a unique 1-dimensional array index from 2-dimensional indices.

Author
J. Ator
Date
2009-03-23

Definition in file icvidx.c.

Function Documentation

◆ icvidx()

int icvidx ( int  ii,
int  jj,
int  numjj 
)

Computes a unique 1-dimensional array index from 2-dimensional indices.

This allows a 2-dimensional (row-by-column) array to be stored and accessed as a 1-dimensional array.

Parameters
ii- first (row) index
jj- second (column) index
numjj- maximum number of column indices
Returns
1-dimensional index.
Author
J. Ator
Date
2009-03-23

Definition at line 22 of file icvidx.c.

Referenced by cpmstabs(), and stseq().