public IFloatData ApplyMask(IFloatData arr, IByteData mask) { var output = new float[arr.Length]; for (var x = 0; x < arr.Length; x++) { output[x] = arr[x] * mask[x]; } return(new CPU_FloatData(output)); }
public ByteArray(byte[] data) { _view = ProcessingDevice.ByteData.New(data);; AxesX = Enumerable.Range(0, data.Length); }
public ByteArray(int size) { _view = ProcessingDevice.ByteData.New(size); AxesX = Enumerable.Range(0, size); }
public ByteArrayT(IByteData data, IEnumerable <int> ax) { _view = data; AxesX = ax; }
public FindByteData(IByteData byteData) { _buffer = new byte[4096]; _byteData = byteData ?? throw new ArgumentNullException("byteData", "FindByteData.FindByteData: The parameter cannot be NULL."); }