109 references to Tensor
System.Numerics.Tensors (109)
System\Numerics\Tensors\netcore\Tensor.cs (100)
74
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(lengths);
165
tensor =
Tensor
.Create<T>(lengths);
179
tensor =
Tensor
.Create<T>([totalLength]);
680
Tensor<bool> destination =
Tensor
.Create<bool>(x.Lengths, false);
861
Tensor<bool> destination =
Tensor
.Create<bool>(x.Lengths, false);
1042
Tensor<bool> destination =
Tensor
.Create<bool>(x.Lengths, false);
1223
Tensor<bool> destination =
Tensor
.Create<bool>(x.Lengths, false);
1650
Tensor<T> output =
Tensor
.Create(values, 0, lengths, []);
1707
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
1721
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
2189
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
2191
return
Tensor
.ConcatenateOnDimension<T>(dimension, outputs);
2229
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
2231
return ref
Tensor
.ConcatenateOnDimension<T>(dimension, outputs, destination);
2559
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2586
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2613
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2654
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2696
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2723
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2750
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2777
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2805
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2832
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2859
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
2888
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2915
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2942
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
2970
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2997
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3042
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3069
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3098
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3125
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3153
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3180
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3209
Tensor<TTo> destination =
Tensor
.CreateUninitialized<TTo>(source.Lengths);
3240
Tensor<TTo> destination =
Tensor
.CreateUninitialized<TTo>(source.Lengths);
3271
Tensor<TTo> destination =
Tensor
.CreateUninitialized<TTo>(source.Lengths);
3301
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3314
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3356
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3383
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3436
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3473
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3517
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3530
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
3617
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3644
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3669
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3692
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3715
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3738
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3761
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3841
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3864
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
3888
Tensor<int> destination =
Tensor
.CreateUninitialized<int>(x.Lengths);
3960
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3987
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4034
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4060
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4087
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4114
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4141
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4168
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4232
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4295
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4358
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4421
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4484
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4547
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4610
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4673
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4700
Tensor<T> destination =
Tensor
.Create<T>(x.Lengths);
4755
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4792
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4815
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4862
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4885
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
4921
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4944
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4968
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4994
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5021
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5046
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5069
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5093
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5116
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5140
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5165
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5190
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5213
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5239
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5267
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5423
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5446
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5469
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5492
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5515
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5564
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor_1.cs (7)
171
public static implicit operator Tensor<T>(T[] array) =>
Tensor
.Create(array);
307
result =
Tensor
.Create<T>(Lengths, IsPinned);
330
Tensor
.ToString(AsReadOnlyTensorSpan(), maximumLengths, sb);
400
static Tensor<T> ITensor<Tensor<T>, T>.Create(scoped ReadOnlySpan<nint> lengths, bool pinned) =>
Tensor
.Create<T>(lengths, pinned);
402
static Tensor<T> ITensor<Tensor<T>, T>.Create(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) =>
Tensor
.Create<T>(lengths, strides, pinned);
404
static Tensor<T> ITensor<Tensor<T>, T>.CreateUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) =>
Tensor
.Create<T>(lengths, pinned);
406
static Tensor<T> ITensor<Tensor<T>, T>.CreateUninitialized(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) =>
Tensor
.Create<T>(lengths, strides, pinned);
System\Numerics\Tensors\netcore\TensorOperation.cs (2)
366
destination =
Tensor
.CreateUninitialized<TResult>(x._shape.Lengths);
370
destination =
Tensor
.CreateUninitialized<TResult>(y._shape.Lengths);