19 references to Lengths
System.Numerics.Tensors (19)
System\Numerics\Tensors\netcore\Tensor.cs (16)
241if (!TensorShape.AreLengthsTheSame(destination.Lengths, lengths)) 275hasMore = IncrementIndexes(ranges, dimension, destination.Lengths); 1513if (tensor.Lengths.SequenceEqual(lengths)) 1557if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1566origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1805&& tensor.Lengths.SequenceEqual(other.Lengths) 2010int removalCount = tensor.Lengths.Count(1); 2014for (int i = 0; i < tensor.Lengths.Length; i++) 2016if (tensor.Lengths[i] != 1) 2018lengths[index] = tensor.Lengths[i]; 2033if (tensor.Lengths[dimension] != 1) 2038for (int i = 0; i < tensor.Lengths.Length; i++) 2042lengths[index] = tensor.Lengths[i]; 2472if (dimension > tensor.Lengths.Length) 2479tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2480tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\TensorOperation.cs (2)
133destinationIndexes[0] = destination.Lengths[0]; 136destinationIndexes[i] = destination.Lengths[i] - 1;
System\Numerics\Tensors\netcore\TensorSpan.cs (1)
218public int Rank => Lengths.Length;