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