Searched refs:np (Results 1 – 2 of 2) sorted by relevance
1 import numpy as np namespace11 S = np.abs(spectrum)
201 size_t np; in create_huffman_tbl() local215 for (np = i = 0; i < 16; i++) { /* Load number of patterns for 1 to 16-bit code */ in create_huffman_tbl()216 np += (pb[i] = *data++); /* Get sum of code words for each code */ in create_huffman_tbl()218 ph = alloc_pool(jd, np * sizeof (uint16_t));/* Allocate a memory block for the code word table */ in create_huffman_tbl()228 if (ndata < np) return JDR_FMT1; /* Err: wrong data size */ in create_huffman_tbl()229 ndata -= np; in create_huffman_tbl()230 pd = alloc_pool(jd, np); /* Allocate a memory block for the decoded data */ in create_huffman_tbl()233 for (i = 0; i < np; i++) { /* Load decoded data corresponds to each code word */ in create_huffman_tbl()