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
|
Array dimensions. |
Returns
|
Number of elements. |
Throws
None
Version History
Introduced in R2017b