Backends/SiaNet.Backend.TensorSharp/Cuda/CudaStorage.cs
/// <summary>
/// Devices the PTR at element.
/// </summary>
/// <param name="index">The index.</param>
/// <returns>CUdeviceptr.</returns>
Devices the PTR at element.
Devices the PTR at element .
public CUdeviceptr DevicePtrAtElement(long index)
        {
            var offset = ElementType.Size() * index;
            return new CUdeviceptr(deviceBuffer.Pointer + offset);
        }
public CUdeviceptr DevicePtrAtElement ( long index ) { var offset = ElementType . Size ( ) * index ; return new CUdeviceptr ( deviceBuffer . Pointer + offset ) ; }
Devices the PTR at element.
Devices the PTR at element .
None
index
long
None