17 references to Tensor
System.Numerics.Tensors (17)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
448
public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) =>
Tensor
.ToString(this, maximumLengths, "System.Numerics.Tensors.ReadOnlyTensorSpan");
531
Tensor<T> tmp =
Tensor
.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor_1.cs (7)
126
public static implicit operator Tensor<T>(T[] array) =>
Tensor
.Create(array);
266
result =
Tensor
.CreateFromShape<T>(Lengths, IsPinned);
295
public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) =>
Tensor
.ToString(AsReadOnlyTensorSpan(), maximumLengths, "System.Numerics.Tensors.Tensor");
365
static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) =>
Tensor
.CreateFromShape<T>(lengths, pinned);
367
static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) =>
Tensor
.CreateFromShape<T>(lengths, strides, pinned);
369
static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) =>
Tensor
.CreateFromShapeUninitialized<T>(lengths, pinned);
371
static Tensor<T> ITensor<Tensor<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) =>
Tensor
.CreateFromShapeUninitialized<T>(lengths, strides, pinned);
System\Numerics\Tensors\netcore\TensorOperation.cs (2)
366
destination =
Tensor
.CreateFromShapeUninitialized<TResult>(x._shape.Lengths);
370
destination =
Tensor
.CreateFromShapeUninitialized<TResult>(y._shape.Lengths);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (6)
335
public string ToString(params scoped ReadOnlySpan<nint> maximumLengths) =>
Tensor
.ToString(AsReadOnlyTensorSpan(), maximumLengths, "System.Numerics.Tensors.TensorSpan");
412
result =
Tensor
.CreateFromShape<T>(Lengths, IsPinned);
451
static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, bool pinned) =>
Tensor
.CreateFromShape<T>(lengths, pinned);
453
static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShape(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) =>
Tensor
.CreateFromShape<T>(lengths, strides, pinned);
455
static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) =>
Tensor
.CreateFromShapeUninitialized<T>(lengths, pinned);
457
static TensorSpan<T> ITensor<TensorSpan<T>, T>.CreateFromShapeUninitialized(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) =>
Tensor
.CreateFromShapeUninitialized<T>(lengths, strides, pinned);