Implemented interface member:
method
AsReadOnlyTensorSpan
System.Numerics.Tensors.IReadOnlyTensor<TSelf, T>.AsReadOnlyTensorSpan()
12 references to AsReadOnlyTensorSpan
System.Numerics.Tensors (12)
System\Numerics\Tensors\netcore\Tensor.cs (2)
1581
ResizeTo(tensor.
AsReadOnlyTensorSpan
(), destination);
2263
return tensor.
AsReadOnlyTensorSpan
().TryBroadcastTo(destination);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (10)
221
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) =>
AsReadOnlyTensorSpan
().Slice(startIndexes);
224
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) =>
AsReadOnlyTensorSpan
().Slice(startIndexes);
227
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) =>
AsReadOnlyTensorSpan
().Slice(ranges);
335
public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) => Tensor.ToString(
AsReadOnlyTensorSpan
(), maximumLengths, "System.Numerics.Tensors.TensorSpan");
338
public bool TryCopyTo(scoped in TensorSpan<T> destination) =>
AsReadOnlyTensorSpan
().TryCopyTo(destination);
341
public bool TryFlattenTo(scoped Span<T> destination) =>
AsReadOnlyTensorSpan
().TryFlattenTo(destination);
376
public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out ReadOnlySpan<T> span) =>
AsReadOnlyTensorSpan
().TryGetSpan(startIndexes, length, out span);
379
public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out ReadOnlySpan<T> span) =>
AsReadOnlyTensorSpan
().TryGetSpan(startIndexes, length, out span);
402
ReadOnlySpan<T> IReadOnlyTensor<TensorSpan<T>, T>.GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) =>
AsReadOnlyTensorSpan
().GetSpan(startIndexes, length);
404
ReadOnlySpan<T> IReadOnlyTensor<TensorSpan<T>, T>.GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) =>
AsReadOnlyTensorSpan
().GetSpan(startIndexes, length);