Intel® Math Kernel Library 2018 Developer Reference - C

dnnLayoutCreate

Creates a plain layout.

Syntax

dnnError_t dnnLayoutCreate_F32(dnnLayout_t *pLayout, size_t dimension, const size_t size[], const size_t strides[]);

dnnError_t dnnLayoutCreate_F64(dnnLayout_t *pLayout, size_t dimension, const size_t size[], const size_t strides[]);

Include Files

Input Parameters

dimension

The number of dimensions of the array.

size

The size along each dimension of the array.

strides

The distance (in elements) between consecutive elements along each dimension of the array.

Output Parameters

pLayout

Pointer to the to the created layout.

Description

Each dnnLayoutCreate function creates a plain layout. The elements of an array that have the layout *pLayout are located at offsets (X, strides) from the beginning of the array where ( . , . ) denotes the scalar product of two vectors and the vector X is such that 0 ≤ X[i] < size[i] for i from 0 to dimension-1.