license import { ENGINE } from '../engine' ; import { LinSpace , LinSpaceAttrs } from '../kernel_names' ; import { NamedAttrMap } from '../kernel_registry' ; import { Tensor1D } from '../tensor' ; param start param stop param num doc export function linspace ( start , stop , num ) { if ( num <= 0 ) { throw new Error ( 'The number of values should be positive.' ) ; } const attrs = { start , stop , num } ; return ENGINE . runKernel ( LinSpace , { } , attrs as { } as NamedAttrMap ) ; }