108 references to Tensor
System.Numerics.Tensors (108)
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]);
697
Tensor<bool> destination =
Tensor
.Create<bool>(x.Lengths, false);
878
Tensor<bool> destination =
Tensor
.Create<bool>(x.Lengths, false);
1059
Tensor<bool> destination =
Tensor
.Create<bool>(x.Lengths, false);
1240
Tensor<bool> destination =
Tensor
.Create<bool>(x.Lengths, false);
1667
Tensor<T> output =
Tensor
.Create(values, 0, lengths, []);
1724
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
1738
Tensor<T> output =
Tensor
.Create<T>(tensor.Lengths);
2206
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
2208
return
Tensor
.ConcatenateOnDimension<T>(dimension, outputs);
2246
outputs[i] =
Tensor
.Unsqueeze(tensors[i], dimension);
2248
return ref
Tensor
.ConcatenateOnDimension<T>(dimension, outputs, destination);
2576
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2603
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2630
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2671
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2713
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2740
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2767
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2794
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2822
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2849
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2876
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
2905
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2932
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
2959
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
2987
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3014
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3059
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3086
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3115
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3142
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3170
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3197
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3226
Tensor<TTo> destination =
Tensor
.CreateUninitialized<TTo>(source.Lengths);
3257
Tensor<TTo> destination =
Tensor
.CreateUninitialized<TTo>(source.Lengths);
3288
Tensor<TTo> destination =
Tensor
.CreateUninitialized<TTo>(source.Lengths);
3318
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3331
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3373
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3400
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3453
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3490
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3534
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3547
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
3634
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3661
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3686
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3709
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3732
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3755
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3778
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3858
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
3881
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
3905
Tensor<int> destination =
Tensor
.CreateUninitialized<int>(x.Lengths);
3977
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4004
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4051
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4077
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4104
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4131
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4158
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4185
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4249
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4312
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4375
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4438
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4501
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4564
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4627
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4690
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4717
Tensor<T> destination =
Tensor
.Create<T>(x.Lengths);
4772
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4809
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4832
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4879
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4902
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(y.Lengths);
4938
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4961
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
4985
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5011
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5038
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5063
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5086
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5110
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5133
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5157
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5182
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5207
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5230
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5256
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5284
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5440
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5463
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5486
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5509
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5532
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
5581
Tensor<T> destination =
Tensor
.CreateUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor_1.cs (6)
167
public static implicit operator Tensor<T>(T[] array) =>
Tensor
.Create(array);
309
Tensor
.ToString(AsReadOnlyTensorSpan(), maximumLengths, sb);
378
static Tensor<T> ITensor<Tensor<T>, T>.Create(scoped ReadOnlySpan<nint> lengths, bool pinned) =>
Tensor
.Create<T>(lengths, pinned);
380
static Tensor<T> ITensor<Tensor<T>, T>.Create(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) =>
Tensor
.Create<T>(lengths, strides, pinned);
382
static Tensor<T> ITensor<Tensor<T>, T>.CreateUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) =>
Tensor
.Create<T>(lengths, pinned);
384
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);