33 references to Lengths
System.Numerics.Tensors (33)
System\Numerics\Tensors\netcore\Tensor.cs (12)
239if (!Lengths.SequenceEqual(value.Lengths)) 241srcSpan = AsTensorSpan().Slice(Lengths); 246if (!srcSpan.Lengths.SequenceEqual(value.Lengths)) 343if (filter.Lengths.Length != Lengths.Length) 346for (int i = 0; i < filter.Lengths.Length; i++) 348if (filter.Lengths[i] != Lengths[i]) 462if (start.Length != Lengths.Length) 594TensorSpanHelpers.AdjustIndexes(_tensor.Rank - 1, 1, ref _curIndices, _tensor.Lengths); 655sb.Append(Lengths[i]);
System\Numerics\Tensors\netcore\TensorExtensions.cs (19)
100nint[] newSize = Tensor.GetSmallestBroadcastableLengths(source.Lengths, destination.Lengths); 235if (input.Lengths.SequenceEqual(lengths)) 238if (!TensorHelpers.IsBroadcastableTo(input.Lengths, lengths)) 246nint[] intermediateShape = TensorHelpers.GetIntermediateShape(input.Lengths, lengths.Length); 2672if (dimensions.Length != tensor.Lengths.Length) 2675lengths[i] = tensor.Lengths[dimensions[i]]; 2733if (tensor.Lengths.SequenceEqual(lengths)) 2772if (lengthOffset < tensor.Rank && arrLengths[i] == tensor.Lengths[lengthOffset]) 2779origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 3246TensorSpanHelpers.Memmove(ref Unsafe.Add(ref oslice._reference, TensorSpanHelpers.ComputeLinearIndex(oIndices, outputs[0].Strides, outputs[0].Lengths)), ref Unsafe.Add(ref islice._reference, TensorSpanHelpers.ComputeLinearIndex(iIndices, islice.Strides, islice.Lengths)), copyLength); 3290for (int i = 0; i < tensor.Lengths.Length; i++) 3292if (tensor.Lengths[i] != 1) 3294tempLengths.Add(tensor.Lengths[i]); 3302if (tensor.Lengths[dimension] != 1) 3306for (int i = 0; i < tensor.Lengths.Length; i++) 3310tempLengths.Add(tensor.Lengths[i]); 3603if (tensor.Lengths.Length < 2) 3664if (dimension > tensor.Lengths.Length) 3676tempStrides.Insert(dimension, tensor.Strides[dimension] * tensor.Lengths[dimension]);
System\Numerics\Tensors\netcore\TensorHelpers.cs (2)
34where T : IEquatable<T>, IEqualityOperators<T, T, bool> => IsBroadcastableTo(tensor1.Lengths, tensor2.Lengths);