| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (24 out of 28)

g2-sparse-gather

Converts a dense array into sparse array format.

Synopsis

g2-sparse-gather
(value-array: class quantity-array, index-array: class integer-array,
full-array: class quantity-array)
Argument Description
value-array
A quantity array containing every non-zero element in full-array.
index-array
A quantity array containing the index of every non-zero element of full-array.
full-array
The dense array that is converted into a sparse array. All elements of full-array are set to 0.

Example

In the following statement:

v-array and i-array are empty (no elements), and f-array = (0,0,0,0,1).

The statement returns the following argument values:

| Prev | Next | Start of Chapter | End of Chapter | Contents | Glossary | Index | Comments | (24 out of 28)

Copyright © 1997 Gensym Corporation, Inc.