Main Content
keyHash
Syntax
Description
returns a
h
= keyHash(A
)uint64
scalar that represents the input array, A
.
The keyHash
function generates a hash code based on the properties of
the input. For custom classes keyHash
may need to be overloaded to ensure
correct equivalence. For more information on using custom classes with dictionary, see Dictionaries and Custom Classes
Note
keyHash
uses a random seed. Results are not reproducible between
MATLAB Sessions or across parallel workers.
Examples
Input Arguments
Output Arguments
Version History
Introduced in R2022b
See Also
dictionary
| entries
| keys
| values
| types
| numEntries
| isConfigured
| isKey
| keyMatch