Implemented interface member:
method
AsReadOnlyTensorSpan
System.Numerics.Tensors.IReadOnlyTensor<TSelf, T>.AsReadOnlyTensorSpan()
14 references to AsReadOnlyTensorSpan
System.Numerics.Tensors (14)
System\Numerics\Tensors\netcore\Tensor.cs (2)
1570
ResizeTo(tensor.
AsReadOnlyTensorSpan
(), destination);
2252
return tensor.
AsReadOnlyTensorSpan
().TryBroadcastTo(destination);
System\Numerics\Tensors\netcore\Tensor_1.cs (12)
134
public static implicit operator ReadOnlyTensorSpan<T>(Tensor<T> tensor) => tensor.
AsReadOnlyTensorSpan
();
140
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) =>
AsReadOnlyTensorSpan
().Slice(startIndexes);
143
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) =>
AsReadOnlyTensorSpan
().Slice(startIndexes);
146
public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) =>
AsReadOnlyTensorSpan
().Slice(ranges);
274
public bool TryCopyTo(scoped in TensorSpan<T> destination) =>
AsReadOnlyTensorSpan
().TryCopyTo(destination);
277
public bool TryFlattenTo(scoped Span<T> destination) =>
AsReadOnlyTensorSpan
().TryFlattenTo(destination);
286
public bool TryGetSpan(scoped ReadOnlySpan<nint> startIndexes, int length, out ReadOnlySpan<T> span) =>
AsReadOnlyTensorSpan
().TryGetSpan(startIndexes, length, out span);
289
public bool TryGetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length, out ReadOnlySpan<T> span) =>
AsReadOnlyTensorSpan
().TryGetSpan(startIndexes, length, out span);
295
public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) => Tensor.ToString(
AsReadOnlyTensorSpan
(), maximumLengths, "System.Numerics.Tensors.Tensor");
325
ReadOnlyTensorDimensionSpan<T> IReadOnlyTensor<Tensor<T>, T>.GetDimensionSpan(int dimension) =>
AsReadOnlyTensorSpan
().GetDimensionSpan(dimension);
329
ReadOnlySpan<T> IReadOnlyTensor<Tensor<T>, T>.GetSpan(scoped ReadOnlySpan<nint> startIndexes, int length) =>
AsReadOnlyTensorSpan
().GetSpan(startIndexes, length);
331
ReadOnlySpan<T> IReadOnlyTensor<Tensor<T>, T>.GetSpan(scoped ReadOnlySpan<NIndex> startIndexes, int length) =>
AsReadOnlyTensorSpan
().GetSpan(startIndexes, length);