Main Content

matlab::data::ArrayDimensions

Type specifying array dimensions

Description

Use the ArrayDimensions type to specify the size of an array. ArrayDimensions is specified as:

using ArrayDimensions = std::vector<size_t>;

Free Function

getNumElements

inline size_t getNumElements(const ArrayDimensions& dims)
Description

Determine the number of elements based on the ArrayDimensions.

Parameters

const ArrayDimensions& dims

Array dimensions.

Returns

inline size_t

Number of elements.

Throws

None

See Also

Introduced in R2017b