17 instantiations of Tensor
System.Numerics.Tensors (17)
System\Numerics\Tensors\netcore\Tensor.cs (13)
298=> new Tensor<T>(lengths, strides: [], pinned); 303=> new Tensor<T>(lengths, strides, pinned); 308=> new Tensor<T>(array); 313=> new Tensor<T>(array, lengths, strides: []); 318=> new Tensor<T>(array, lengths, strides); 323=> new Tensor<T>(array, start, lengths, strides); 423return new Tensor<T>(values, in shape); 1392outTensor = new Tensor<T>(tensor._values, tensor._start, newLengths, newStrides); 1473return new Tensor<T>(tensor._values, tensor._start, lengths, strides); 1860outputs[i] = new Tensor<T>(values, newLengths, strides: []); 1931Tensor<T> output = new Tensor<T>(tensor._values, tensor._start, lengths[..rank], strides[..rank]); 2273Tensor<T> output = new Tensor<T>(tensor._values, tensor._start, lengths, strides); 2354Tensor<T> output = new Tensor<T>(tensor._values, tensor._start, newLengths, newStrides);
System\Numerics\Tensors\netcore\Tensor_1.cs (4)
21public static Tensor<T> Empty { get; } = new(); 216return new Tensor<T>( 231return new Tensor<T>( 246return new Tensor<T>(
484 references to Tensor
System.Numerics.Tensors (484)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
468Tensor<T> tmp = Tensor.Create<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (456)
52/// Broadcast the data from <paramref name="source"/> to the smallest broadcastable shape compatible with <paramref name="lengthsSource"/>. Creates a new <see cref="Tensor{T}"/> and allocates new memory. 54/// <param name="source">Input <see cref="Tensor{T}"/>.</param> 55/// <param name="lengthsSource">Other <see cref="Tensor{T}"/> to make shapes broadcastable.</param> 56public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped in ReadOnlyTensorSpan<T> lengthsSource) 62/// Broadcast the data from <paramref name="source"/> to the new shape <paramref name="lengths"/>. Creates a new <see cref="Tensor{T}"/> and allocates new memory. 65/// <param name="source">Input <see cref="Tensor{T}"/>.</param> 68public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped ReadOnlySpan<nint> lengths) 71Tensor<T> destination = CreateUninitialized<T>(lengths); 83public static void BroadcastTo<T>(this Tensor<T> source, in TensorSpan<T> destination) 117public static Tensor<T> Concatenate<T>(params scoped ReadOnlySpan<Tensor<T>> tensors) 127public static Tensor<T> ConcatenateOnDimension<T>(int dimension, params scoped ReadOnlySpan<Tensor<T>> tensors) 135Tensor<T> tensor; 188public static ref readonly TensorSpan<T> Concatenate<T>(scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination) 200public static ref readonly TensorSpan<T> ConcatenateOnDimension<T>(int dimension, scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination) 268Tensor<T> slice = tensors[i].Slice(ranges); 297public static Tensor<T> Create<T>(scoped ReadOnlySpan<nint> lengths, bool pinned = false) 302public static Tensor<T> Create<T>(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false) 307public static Tensor<T> Create<T>(T[] array) 312public static Tensor<T> Create<T>(T[] array, scoped ReadOnlySpan<nint> lengths) 317public static Tensor<T> Create<T>(T[] array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 322public static Tensor<T> Create<T>(T[] array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 326public static Tensor<T> Create<T>(IEnumerable<T> enumerable, bool pinned = false) 332Tensor<T> tensor = CreateUninitialized<T>([array.Length], pinned); 345public static Tensor<T> Create<T>(IEnumerable<T> enumerable, scoped ReadOnlySpan<nint> lengths, bool pinned = false) 350public static Tensor<T> Create<T>(IEnumerable<T> enumerable, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false) 356Tensor<T> tensor = CreateUninitialized<T>(lengths, strides, pinned); 368/// Creates a <see cref="Tensor{T}"/> and initializes it with random data in a gaussian normal distribution. 371public static Tensor<T> CreateAndFillGaussianNormalDistribution<T>(scoped ReadOnlySpan<nint> lengths) 378/// Creates a <see cref="Tensor{T}"/> and initializes it with random data in a gaussian normal distribution. 382public static Tensor<T> CreateAndFillGaussianNormalDistribution<T>(Random random, scoped ReadOnlySpan<nint> lengths) 385Tensor<T> tensor = CreateUninitialized<T>(lengths); 392/// Creates a <see cref="Tensor{T}"/> and initializes it with random data uniformly distributed. 395public static Tensor<T> CreateAndFillUniformDistribution<T>(scoped ReadOnlySpan<nint> lengths) 402/// Creates a <see cref="Tensor{T}"/> and initializes it with random data uniformly distributed. 406public static Tensor<T> CreateAndFillUniformDistribution<T>(Random random, scoped ReadOnlySpan<nint> lengths) 409Tensor<T> tensor = CreateUninitialized<T>(lengths); 415public static Tensor<T> CreateUninitialized<T>(scoped ReadOnlySpan<nint> lengths, bool pinned = false) 419public static Tensor<T> CreateUninitialized<T>(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned = false) 478public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 481TensorOperation.ValidateCompatibility(x, y, out Tensor<bool> destination); 509public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, T y) 512Tensor<bool> destination = CreateUninitialized<bool>(x.Lengths); 598/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 612/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 627/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 632/// <returns>A <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> and 634public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 637TensorOperation.ValidateCompatibility(x, y, out Tensor<bool> destination); 645/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 651/// <returns>A <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> and 663/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 668/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 670public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, T y) 673Tensor<bool> destination = Create<bool>(x.Lengths, false); 680/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 686/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 698/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 703/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 705public static Tensor<bool> GreaterThan<T>(T x, in ReadOnlyTensorSpan<T> y) 710/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 716/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 808/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 813/// <returns>A <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> and 815public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 818TensorOperation.ValidateCompatibility(x, y, out Tensor<bool> destination); 826/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 832/// <returns>A <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> and 844/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 849/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 851public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 854Tensor<bool> destination = Create<bool>(x.Lengths, false); 861/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 867/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 879/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 884/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 886public static Tensor<bool> GreaterThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 891/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 897/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are greater than <paramref name="y"/> 989/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 994/// <returns>A <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> and 996public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 999TensorOperation.ValidateCompatibility(x, y, out Tensor<bool> destination); 1007/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1013/// <returns>A <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> and 1024/// Compares the elements of a <see cref="Tensor{T}"/> to see which elements are less than <paramref name="y"/>. 1025/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1028/// <param name="x"><see cref="Tensor{T}"/> to compare.</param> 1030/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1032public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, T y) 1035Tensor<bool> destination = Create<bool>(x.Lengths, false); 1041/// Compares the elements of a <see cref="Tensor{T}"/> to see which elements are less than <paramref name="y"/>. 1042/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1045/// <param name="x"><see cref="Tensor{T}"/> to compare.</param> 1048/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1059/// Compares the elements of a <see cref="Tensor{T}"/> to see which elements are less than <paramref name="y"/>. 1060/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1063/// <param name="x"><see cref="Tensor{T}"/> to compare.</param> 1065/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1067public static Tensor<bool> LessThan<T>(T x, in ReadOnlyTensorSpan<T> y) 1071/// Compares the elements of a <see cref="Tensor{T}"/> to see which elements are less than <paramref name="y"/>. 1072/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1075/// <param name="x"><see cref="Tensor{T}"/> to compare.</param> 1078/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1170/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1175/// <returns>A <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> and 1177public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1180TensorOperation.ValidateCompatibility(x, y, out Tensor<bool> destination); 1188/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1194/// <returns>A <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> and 1205/// Compares the elements of a <see cref="Tensor{T}"/> to see which elements are less than <paramref name="y"/>. 1206/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1209/// <param name="x"><see cref="Tensor{T}"/> to compare.</param> 1211/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1213public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 1216Tensor<bool> destination = Create<bool>(x.Lengths, false); 1222/// Compares the elements of a <see cref="Tensor{T}"/> to see which elements are less than <paramref name="y"/>. 1223/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1226/// <param name="x"><see cref="Tensor{T}"/> to compare.</param> 1229/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1240/// Compares the elements of a <see cref="Tensor{T}"/> to see which elements are less than <paramref name="y"/>. 1241/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1244/// <param name="x"><see cref="Tensor{T}"/> to compare.</param> 1246/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1248public static Tensor<bool> LessThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 1252/// Compares the elements of a <see cref="Tensor{T}"/> to see which elements are less than <paramref name="y"/>. 1253/// It returns a <see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1256/// <param name="x"><see cref="Tensor{T}"/> to compare.</param> 1259/// <returns><see cref="Tensor{Boolean}"/> where the value is true if the elements in <paramref name="x"/> are less than <paramref name="y"/> 1351/// If <paramref name="tensor"/> is a 1D tensor, it will return <paramref name="tensor"/>. Otherwise it creates a new <see cref="Tensor{T}"/> 1354/// <param name="tensor">Input <see cref="Tensor{T}"/></param> 1356public static Tensor<T> PermuteDimensions<T>(this Tensor<T> tensor, ReadOnlySpan<int> dimensions) 1370Tensor<T> outTensor; 1408/// <param name="tensor"><see cref="Tensor{T}"/> you want to reshape.</param> 1410public static Tensor<T> Reshape<T>(this Tensor<T> tensor, ReadOnlySpan<nint> lengths) 1630/// Creates a new <see cref="Tensor{T}"/>, allocates new memory, and copies the data from <paramref name="tensor"/>. If the final shape is smaller all data after 1633/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 1635public static Tensor<T> Resize<T>(Tensor<T> tensor, ReadOnlySpan<nint> lengths) 1639Tensor<T> output = Create(values, lengths, []); 1654/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 1656public static void ResizeTo<T>(scoped in Tensor<T> tensor, in TensorSpan<T> destination) 1693/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 1694public static Tensor<T> Reverse<T>(in ReadOnlyTensorSpan<T> tensor) 1696Tensor<T> output = Create<T>(tensor.Lengths); 1706/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 1708public static Tensor<T> ReverseDimension<T>(in ReadOnlyTensorSpan<T> tensor, int dimension) 1710Tensor<T> output = Create<T>(tensor.Lengths); 1798/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 1801public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in ReadOnlyTensorSpan<T> values, params ReadOnlySpan<NRange> ranges) 1810/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 1829/// Split a <see cref="Tensor{T}"/> into <paramref name="splitCount"/> along the given <paramref name="dimension"/>. If the tensor cannot be split 1832/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 1835public static Tensor<T>[] Split<T>(scoped in ReadOnlyTensorSpan<T> tensor, int splitCount, nint dimension) 1842Tensor<T>[] outputs = new Tensor<T>[splitCount]; 1875/// <param name="tensor">The <see cref="Tensor{T}"/> to remove all dimensions of length 1.</param> 1876public static Tensor<T> Squeeze<T>(this Tensor<T> tensor) 1885/// <param name="tensor">The <see cref="Tensor{T}"/> to remove dimension of length 1.</param> 1887public static Tensor<T> SqueezeDimension<T>(this Tensor<T> tensor, int dimension) 1931Tensor<T> output = new Tensor<T>(tensor._values, tensor._start, lengths[..rank], strides[..rank]); 2076/// Join multiple <see cref="Tensor{T}"/> along a new dimension that is added at position 0. All tensors must have the same shape. 2078/// <param name="tensors">Input <see cref="Tensor{T}"/>.</param> 2079public static Tensor<T> Stack<T>(params ReadOnlySpan<Tensor<T>> tensors) 2085/// Join multiple <see cref="Tensor{T}"/> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have the same shape. 2087/// <param name="tensors">Input <see cref="Tensor{T}"/>.</param> 2089public static Tensor<T> StackAlongDimension<T>(int dimension, params ReadOnlySpan<Tensor<T>> tensors) 2105Tensor<T>[] outputs = new Tensor<T>[tensors.Length]; 2114/// Join multiple <see cref="Tensor{T}"/> along a new dimension that is added at position 0. All tensors must have the same shape. 2116/// <param name="tensors">Input <see cref="Tensor{T}"/>.</param> 2118public static ref readonly TensorSpan<T> Stack<T>(scoped in ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination) 2124/// Join multiple <see cref="Tensor{T}"/> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have the same shape. 2126/// <param name="tensors">Input <see cref="Tensor{T}"/>.</param> 2129public static ref readonly TensorSpan<T> StackAlongDimension<T>(scoped ReadOnlySpan<Tensor<T>> tensors, in TensorSpan<T> destination, int dimension) 2145Tensor<T>[] outputs = new Tensor<T>[tensors.Length]; 2239/// Creates a <see cref="string"/> representation of the <see cref="Tensor{T}"/>."/> 2244public static string ToString<T>(this Tensor<T> tensor, ReadOnlySpan<nint> maximumLengths) 2253/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 2254public static Tensor<T> Transpose<T>(Tensor<T> tensor) 2273Tensor<T> output = new Tensor<T>(tensor._values, tensor._start, lengths, strides); 2287/// <param name="tensor">Input <see cref="Tensor{T}"/>.</param> 2289public static bool TryBroadcastTo<T>(this Tensor<T> tensor, in TensorSpan<T> destination) 2326/// <param name="tensor">The <see cref="Tensor{T}"/> to add a dimension of length 1.</param> 2328public static Tensor<T> Unsqueeze<T>(this Tensor<T> tensor, int dimension) 2354Tensor<T> output = new Tensor<T>(tensor._values, tensor._start, newLengths, newStrides); 2438/// Takes the absolute value of each element of the <see cref="Tensor{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2441public static Tensor<T> Abs<T>(in ReadOnlyTensorSpan<T> x) 2444Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2465/// Takes the inverse cosine of each element of the <see cref="Tensor{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2468public static Tensor<T> Acos<T>(in ReadOnlyTensorSpan<T> x) 2471Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2477/// Takes the inverse cosine of each element of the <see cref="Tensor{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2492/// Takes the inverse hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2495public static Tensor<T> Acosh<T>(in ReadOnlyTensorSpan<T> x) 2498Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2519/// Takes the inverse hyperbolic cosine divided by pi of each element of the <see cref="Tensor{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2522public static Tensor<T> AcosPi<T>(in ReadOnlyTensorSpan<T> x) 2525Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2546/// Adds each element of <paramref name="x"/> to each element of <paramref name="y"/> and returns a new <see cref="Tensor{T}"/> with the result. 2550public static Tensor<T> Add<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2553TensorOperation.ValidateCompatibility(x, y, out Tensor<T> destination); 2559/// Adds <paramref name="y"/> to each element of <paramref name="x"/> and returns a new <see cref="Tensor{T}"/> with the result. 2563public static Tensor<T> Add<T>(in ReadOnlyTensorSpan<T> x, T y) 2566Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2602/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2605public static Tensor<T> Asin<T>(in ReadOnlyTensorSpan<T> x) 2608Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2629/// Takes the inverse hyperbolic sine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2632public static Tensor<T> Asinh<T>(in ReadOnlyTensorSpan<T> x) 2635Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2656/// Takes the inverse hyperbolic sine divided by pi of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2659public static Tensor<T> AsinPi<T>(in ReadOnlyTensorSpan<T> x) 2662Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2683/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2686public static Tensor<T> Atan<T>(in ReadOnlyTensorSpan<T> x) 2689Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2710/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2714public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2717Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2737/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2741public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, T y) 2744Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2764/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2768public static Tensor<T> Atan2<T>(T x, in ReadOnlyTensorSpan<T> y) 2771Tensor<T> destination = CreateUninitialized<T>(y.Lengths); 2793/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/>, divides each element by pi, and returns a new <see cref="Tensor{T}"/> with the result. 2797public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2800Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2824public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, T y) 2827Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2851public static Tensor<T> Atan2Pi<T>(T x, in ReadOnlyTensorSpan<T> y) 2854Tensor<T> destination = CreateUninitialized<T>(y.Lengths); 2876/// Takes the inverse hyperbolic tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2879public static Tensor<T> Atanh<T>(in ReadOnlyTensorSpan<T> x) 2882Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2903/// Takes the inverse hyperbolic tangent divided by pi of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2906public static Tensor<T> AtanPi<T>(in ReadOnlyTensorSpan<T> x) 2909Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2947/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2951public static Tensor<T> BitwiseAnd<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2954Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 2974/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2978public static Tensor<T> BitwiseAnd<T>(in ReadOnlyTensorSpan<T> x, T y) 2981Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3003/// Computes the element-wise bitwise of of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3007public static Tensor<T> BitwiseOr<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3010Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3030/// Computes the element-wise bitwise or of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3034public static Tensor<T> BitwiseOr<T>(in ReadOnlyTensorSpan<T> x, T y) 3037Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3059/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3062public static Tensor<T> Cbrt<T>(in ReadOnlyTensorSpan<T> x) 3065Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3086/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3089public static Tensor<T> Ceiling<T>(in ReadOnlyTensorSpan<T> x) 3092Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3117public static Tensor<TTo> ConvertChecked<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3121Tensor<TTo> destination = CreateUninitialized<TTo>(source.Lengths); 3148public static Tensor<TTo> ConvertSaturating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3152Tensor<TTo> destination = CreateUninitialized<TTo>(source.Lengths); 3179public static Tensor<TTo> ConvertTruncating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3183Tensor<TTo> destination = CreateUninitialized<TTo>(source.Lengths); 3210public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, T sign) 3213Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3219/// Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new <see cref="Tensor{T}"/> with the result. 3223public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> sign) 3226Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3262/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3265public static Tensor<T> Cos<T>(in ReadOnlyTensorSpan<T> x) 3268Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3289/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3292public static Tensor<T> Cosh<T>(in ReadOnlyTensorSpan<T> x) 3295Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3331/// <summary>Computes the element-wise cosine of the value in the specified tensor that has been multiplied by Pi and returns a new <see cref="Tensor{T}"/> with the results.</summary> 3345public static Tensor<T> CosPi<T>(in ReadOnlyTensorSpan<T> x) 3348Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3382public static Tensor<T> DegreesToRadians<T>(in ReadOnlyTensorSpan<T> x) 3385Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3422/// Divides each element of <paramref name="x"/> by <paramref name="y"/> and returns a new <see cref="Tensor{T}"/> with the result. 3426public static Tensor<T> Divide<T>(in ReadOnlyTensorSpan<T> x, T y) 3429Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3435/// Divides <paramref name="x"/> by each element of <paramref name="y"/> and returns a new <see cref="Tensor{T}"/> with the result."/> 3439public static Tensor<T> Divide<T>(T x, in ReadOnlyTensorSpan<T> y) 3442Tensor<T> destination = CreateUninitialized<T>(y.Lengths); 3453public static Tensor<T> Divide<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3456TensorOperation.ValidateCompatibility(x, y, out Tensor<T> destination); 3526public static Tensor<T> Exp<T>(in ReadOnlyTensorSpan<T> x) 3529Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3553public static Tensor<T> Exp10<T>(in ReadOnlyTensorSpan<T> x) 3556Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3578public static Tensor<T> Exp10M1<T>(in ReadOnlyTensorSpan<T> x) 3581Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3601public static Tensor<T> Exp2<T>(in ReadOnlyTensorSpan<T> x) 3604Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3624public static Tensor<T> Exp2M1<T>(in ReadOnlyTensorSpan<T> x) 3627Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3647public static Tensor<T> ExpM1<T>(in ReadOnlyTensorSpan<T> x) 3650Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3670public static Tensor<T> Floor<T>(in ReadOnlyTensorSpan<T> x) 3673Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3697public static Tensor<T> Hypot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3700TensorOperation.ValidateCompatibility(x, y, out Tensor<T> destination); 3726public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3729TensorOperation.ValidateCompatibility(x, y, out Tensor<T> destination); 3750public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, T y) 3753Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3773public static Tensor<T> Ieee754Remainder<T>(T x, in ReadOnlyTensorSpan<T> y) 3776Tensor<T> destination = CreateUninitialized<T>(y.Lengths); 3797public static Tensor<int> ILogB<T>(in ReadOnlyTensorSpan<T> x) 3800Tensor<int> destination = CreateUninitialized<int>(x.Lengths); 3869public static Tensor<T> LeadingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 3872Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3893/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3896public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x) 3899Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3920public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3923TensorOperation.ValidateCompatibility(x, y, out Tensor<T> destination); 3943public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, T y) 3946Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3966/// Takes the base 10 logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3969public static Tensor<T> Log10<T>(in ReadOnlyTensorSpan<T> x) 3972Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 3993/// Takes the base 10 logarithm plus 1 of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3996public static Tensor<T> Log10P1<T>(in ReadOnlyTensorSpan<T> x) 3999Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4020/// Takes the base 2 logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 4023public static Tensor<T> Log2<T>(in ReadOnlyTensorSpan<T> x) 4026Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4047/// Takes the base 2 logarithm plus 1 of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 4050public static Tensor<T> Log2P1<T>(in ReadOnlyTensorSpan<T> x) 4053Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4074/// Takes the natural logarithm plus 1 of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 4077public static Tensor<T> LogP1<T>(in ReadOnlyTensorSpan<T> x) 4080Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4118public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4121TensorOperation.ValidateCompatibility(in x, in y, out Tensor<T> output); 4141public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, T y) 4144Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4181public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4184TensorOperation.ValidateCompatibility(in x, in y, out Tensor<T> destination); 4204public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4207Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4244public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4247TensorOperation.ValidateCompatibility(in x, in y, out Tensor<T> destination); 4267public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4270Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4307public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4310TensorOperation.ValidateCompatibility(in x, in y, out Tensor<T> destination); 4330public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4333Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4370public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4373TensorOperation.ValidateCompatibility(in x, in y, out Tensor<T> output); 4393public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, T y) 4396Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4433public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4436TensorOperation.ValidateCompatibility(in x, in y, out Tensor<T> destination); 4456public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4459Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4496public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4499TensorOperation.ValidateCompatibility(in x, in y, out Tensor<T> destination); 4519public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4522Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4559public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4562TensorOperation.ValidateCompatibility(in x, in y, out Tensor<T> destination); 4582public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4585Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4605/// Multiplies each element of <paramref name="x"/> with <paramref name="y"/> and returns a new <see cref="Tensor{T}"/> with the result. 4609public static Tensor<T> Multiply<T>(in ReadOnlyTensorSpan<T> x, T y) 4612Tensor<T> destination = Create<T>(x.Lengths); 4618/// Multiplies each element of <paramref name="x"/> with <paramref name="y"/> and returns a new <see cref="Tensor{T}"/> with the result. 4623public static Tensor<T> Multiply<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4626TensorOperation.ValidateCompatibility(x, y, out Tensor<T> destination); 4664public static Tensor<T> Negate<T>(in ReadOnlyTensorSpan<T> x) 4667Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4701public static Tensor<T> OnesComplement<T>(in ReadOnlyTensorSpan<T> x) 4704Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4724public static Tensor<T> PopCount<T>(in ReadOnlyTensorSpan<T> x) 4727Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4748public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4751TensorOperation.ValidateCompatibility(x, y, out Tensor<T> destination); 4771public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, T y) 4774Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4794public static Tensor<T> Pow<T>(T x, in ReadOnlyTensorSpan<T> y) 4797Tensor<T> destination = CreateUninitialized<T>(y.Lengths); 4830public static Tensor<T> RadiansToDegrees<T>(in ReadOnlyTensorSpan<T> x) 4833Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4853public static Tensor<T> Reciprocal<T>(in ReadOnlyTensorSpan<T> x) 4856Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4877public static Tensor<T> RootN<T>(in ReadOnlyTensorSpan<T> x, int n) 4880Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4903public static Tensor<T> RotateLeft<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 4906Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4930public static Tensor<T> RotateRight<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 4933Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4955public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x) 4958Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 4978public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode) 4981Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5002public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits) 5005Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5025public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, MidpointRounding mode) 5028Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5049public static Tensor<T> Sigmoid<T>(in ReadOnlyTensorSpan<T> x) 5052Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5071/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5074public static Tensor<T> Sin<T>(in ReadOnlyTensorSpan<T> x) 5077Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5099public static Tensor<T> Sinh<T>(in ReadOnlyTensorSpan<T> x) 5102Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5122public static Tensor<T> SinPi<T>(in ReadOnlyTensorSpan<T> x) 5125Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5145public static Tensor<T> SoftMax<T>(in ReadOnlyTensorSpan<T> x) 5151Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5173/// Takes the square root of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5176public static Tensor<T> Sqrt<T>(in ReadOnlyTensorSpan<T> x) 5179Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5218/// Subtracts <paramref name="y"/> from each element of <paramref name="x"/> and returns a new <see cref="Tensor{T}"/> with the result. 5222public static Tensor<T> Subtract<T>(in ReadOnlyTensorSpan<T> x, T y) 5225Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5231/// Subtracts each element of <paramref name="y"/> from <paramref name="x"/> and returns a new <see cref="Tensor{T}"/> with the result. 5235public static Tensor<T> Subtract<T>(T x, in ReadOnlyTensorSpan<T> y) 5238Tensor<T> destination = CreateUninitialized<T>(y.Lengths); 5244/// Subtracts each element of <paramref name="x"/> from <paramref name="y"/> and returns a new <see cref="Tensor{T}"/> with the result. 5248public static Tensor<T> Subtract<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 5251TensorOperation.ValidateCompatibility(x, y, out Tensor<T> destination); 5332public static Tensor<T> Tan<T>(in ReadOnlyTensorSpan<T> x) 5335Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5355public static Tensor<T> Tanh<T>(in ReadOnlyTensorSpan<T> x) 5358Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5378public static Tensor<T> TanPi<T>(in ReadOnlyTensorSpan<T> x) 5381Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5401public static Tensor<T> TrailingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 5404Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5424public static Tensor<T> Truncate<T>(in ReadOnlyTensorSpan<T> x) 5427Tensor<T> destination = CreateUninitialized<T>(x.Lengths); 5448public static Tensor<T> Xor<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 5451TensorOperation.ValidateCompatibility(x, y, out Tensor<T> destination); 5469/// Computes the element-wise Xor of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5473public static Tensor<T> Xor<T>(in ReadOnlyTensorSpan<T> x, T y) 5476Tensor<T> destination = CreateUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor_1.cs (26)
18public sealed class Tensor<T> : ITensor<Tensor<T>, T>, IEnumerable<T> 21public static Tensor<T> Empty { get; } = new(); 93public Tensor<T> this[params ReadOnlySpan<NRange> ranges] 126public static implicit operator Tensor<T>(T[] array) => Tensor.Create(array); 131public static implicit operator TensorSpan<T>(Tensor<T> tensor) => tensor.AsTensorSpan(); 134public static implicit operator ReadOnlyTensorSpan<T>(Tensor<T> tensor) => tensor.AsReadOnlyTensorSpan(); 209public Tensor<T> Slice(params ReadOnlySpan<nint> startIndexes) 224public Tensor<T> Slice(params ReadOnlySpan<NIndex> startIndexes) 239public Tensor<T> Slice(params ReadOnlySpan<NRange> ranges) 254public Tensor<T> ToDenseTensor() 256Tensor<T> result = this; 277/// <returns>A <see cref="string"/> representation of the <see cref="Tensor{T}"/></returns> 313ref readonly T IReadOnlyTensor<Tensor<T>, T>.this[params ReadOnlySpan<nint> indexes] => ref this[indexes]; 315ref readonly T IReadOnlyTensor<Tensor<T>, T>.this[params ReadOnlySpan<NIndex> indexes] => ref this[indexes]; 317ReadOnlyTensorDimensionSpan<T> IReadOnlyTensor<Tensor<T>, T>.GetDimensionSpan(int dimension) => AsReadOnlyTensorSpan().GetDimensionSpan(dimension); 319ref readonly T IReadOnlyTensor<Tensor<T>, T>.GetPinnableReference() => ref GetPinnableReference(); 353static Tensor<T> ITensor<Tensor<T>, T>.Create(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.Create<T>(lengths, pinned); 355static Tensor<T> ITensor<Tensor<T>, T>.Create(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) => Tensor.Create<T>(lengths, strides, pinned); 357static Tensor<T> ITensor<Tensor<T>, T>.CreateUninitialized(scoped ReadOnlySpan<nint> lengths, bool pinned) => Tensor.CreateUninitialized<T>(lengths, pinned); 359static Tensor<T> ITensor<Tensor<T>, T>.CreateUninitialized(scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) => Tensor.CreateUninitialized<T>(lengths, strides, pinned); 364private readonly Tensor<T> _tensor; 369internal Enumerator(Tensor<T> tensor)
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
359public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, out Tensor<TResult> destination)