Intel® oneAPI Math Kernel Library Developer Reference - C

mkl_graph_matrix_destroy

Deallocates all memory allocated internally for a graph matrix.

Syntax

mkl_graph_status_t mkl_graph_matrix_destroy (mkl_graph_matrix_t *A);

Include Files

Description

The mkl_graph_matrix_destroy routine deallocates all memory allocated internally for a graph matrix and destroys all internal data (for example, optimized data created by mkl_graph_optimize_mxv or graph operations which involve the matrix) associated with it. Memory that you allocate remains untouched.

Note

To avoid memory leaks, always call mkl_graph_matrix_destroy for every matrix which was created by mkl_graph_matrix_create.

Input Parameters

A

A graph matrix to be destroyed.

Return Values

The function returns a value indicating whether the operation was successful or not and why. Refer to Graph API Glossary for a list of possible options.

Product and Performance Information

Performance varies by use, configuration and other factors. Learn more at www.Intel.com/PerformanceIndex.

Notice revision #20201201