Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

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
  • mkl_graph.h

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