Developer Reference for Intel® oneAPI Math Kernel Library for C

ID 766684
Date 6/24/2024
Public

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

Document Table of Contents

mkl_?get_size_compact

Returns the buffer size, in bytes, needed to pack data in Compact format.

Syntax

MKL_INT mkl_sget_size_compact (MKL_INT ld, MKL_INT sd, MKL_COMPACT_PACK format, MKL_INT nm);

MKL_INT mkl_dget_size_compact (MKL_INT ld, MKL_INT sd, MKL_COMPACT_PACK format, MKL_INT nm);

MKL_INT mkl_cget_size_compact (MKL_INT ld, MKL_INT sd, MKL_COMPACT_PACK format, MKL_INT nm);

MKL_INT mkl_zget_size_compact (MKL_INT ld, MKL_INT sd, MKL_COMPACT_PACK format, MKL_INT nm);

Description

The routine returns the buffer size, in bytes, required for mkl_?gepack_compact.

Input Parameters

ld
Leading dimension of the matrices in Compact format.
sd
Second dimension of the matrices in Compact format.
format
Describes the compact packing format according to the MKL_COMPACT_PACK enum type.
nm
Total number of matrices to be packed in Compact format.

Application Notes:

Before calling this routine, mkl_?get_format_compact can be called to determine the optimal format.

After calling this routine and allocating the amount of memory indicated by size, the user can call mkl_?gepack_compact to pack the nm input matrices in Compact format.

Return Values

This function returns a value size.

size The buffer size, in bytes, required by the packing function mkl_?gepack_compact.