Throws unless value is a host array of HostType or a GPU-resident
GpuType.
Parameters
name: string
value: unknown
HostType: Function
e.g. Float32Array
GpuType: Function
GpuVector or GpuMatrix. Its message uses
the class's own typeName: .name doesn't survive bundling or
minification. (HostType is a built-in, whose .name does.)
Throws unless
valueis a host array ofHostTypeor a GPU-residentGpuType.