9 references to ReadOnlyTensorSpan
System.Numerics.Tensors (9)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
50
return new
ReadOnlyTensorSpan
<T>(ref Unsafe.Add(ref _tensor._reference, linearOffset), _sliceShape);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (4)
352
return new
ReadOnlyTensorSpan
<T>(
415
return new
ReadOnlyTensorSpan
<T>(
425
return new
ReadOnlyTensorSpan
<T>(
435
return new
ReadOnlyTensorSpan
<T>(
System\Numerics\Tensors\netcore\Tensor.cs (1)
2283
ReadOnlyTensorSpan<T> tmpTensor = new
ReadOnlyTensorSpan
<T>(ref Unsafe.Add(ref tensor._reference, i * tensor.Strides[0]), tmpShape);
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
182
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new
ReadOnlyTensorSpan
<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
242
new
ReadOnlyTensorSpan
<T>(ref tensor._reference, tensor._shape);
245
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new
ReadOnlyTensorSpan
<T>(ref _reference, in _shape);