ManagedLibraryExpressionID

ManagedLibraryExpressionID[expr]

returns the positive integer ID associated with expr if it is a managed library expression and $Failed otherwise.

ManagedLibraryExpressionID[expr,mname]

only returns the ID if expr is associated with the registered manager having name mname.

Details

Examples

Basic Examples  (1)

Load example LibraryFunction objects that implement a simple linear congruential random generator:

Create an instance of a linear congruential generator:

Get its unique ID:

Set its parameters using the unique ID assigned by CreateManagedLibraryExpression:

Generate two pseudorandom numbers from the instance:

Introduced in 2014
 (10.0)