Implemented interface member:
method
AsTensorSpan
System.Numerics.Tensors.ITensor<TSelf, T>.AsTensorSpan()
22 references to AsTensorSpan
System.Numerics.Tensors (22)
System\Numerics\Tensors\netcore\Tensor.cs (17)
205
public ref T this[params scoped ReadOnlySpan<nint> indexes] => ref
AsTensorSpan
()[indexes];
215
public ref T this[params scoped ReadOnlySpan<NIndex> indexes] => ref
AsTensorSpan
()[indexes];
241
srcSpan =
AsTensorSpan
().Slice(Lengths);
244
srcSpan =
AsTensorSpan
().Slice(ranges);
249
value.
AsTensorSpan
().CopyTo(srcSpan);
397
public TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NRange> start) =>
AsTensorSpan
().Slice(start);
411
public TensorSpan<T> AsTensorSpan(params scoped ReadOnlySpan<NIndex> startIndex) =>
AsTensorSpan
().Slice(startIndex);
424
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> start) =>
AsTensorSpan
().Slice(start);
438
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndex) =>
AsTensorSpan
().Slice(startIndex);
445
public ref T GetPinnableReference() => ref
AsTensorSpan
().GetPinnableReference();
508
public unsafe void Clear() =>
AsTensorSpan
().Clear();
520
public void CopyTo(TensorSpan<T> destination) =>
AsTensorSpan
().CopyTo(destination);
526
public void Fill(T value) =>
AsTensorSpan
().Fill(value);
536
public bool TryCopyTo(TensorSpan<T> destination) =>
AsTensorSpan
().TryCopyTo(destination);
542
public void FlattenTo(Span<T> destination) =>
AsTensorSpan
().FlattenTo(destination);
548
public bool TryFlattenTo(Span<T> destination) =>
AsTensorSpan
().TryFlattenTo(destination);
679
sb.Append(
AsTensorSpan
().ToString(maximumLengths));
System\Numerics\Tensors\netcore\TensorExtensions.cs (5)
2680
ospan = outTensor.
AsTensorSpan
();
2681
ispan = tensor.
AsTensorSpan
();
2945
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor.
AsTensorSpan
()._reference, (int)tensor._values.Length);
2946
Span<T> ospan = MemoryMarshal.CreateSpan(ref output.
AsTensorSpan
()._reference, (int)output.FlattenedLength);
3241
TensorSpan<T> oslice = outputs[i].
AsTensorSpan
().Slice(outputs[i]._lengths);