new KernelSet(…kernelNamesopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
kernelNames |
String |
<optional> <repeatable> |
Names of the kernels to add to the set. |
- Source:
Members
(readonly) kernels
- Source:
(readonly) names :Array.<string>
Get the names of the Kernels in the Set.
Type:
- Array.<string>
- Source:
Methods
clear()
Remove all kernels from the set.
- Source:
destroy()
Removes the C++ object from memory.
- Source:
kernel(index) → {Kernel}
Gets the kernel at `index` of the list.
Parameters:
Name | Type | Description |
---|---|---|
index |
number | Index of the kernel to return. |
- Source:
Returns:
The kernel at `index` of the set.
- Type
- Kernel
push(kernel)
Adds a kernel to the set.
Parameters:
Name | Type | Description |
---|---|---|
kernel |
string | Kernel | The kernel to add by name or instance. |
- Source: