Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
21 references to Lengths
System.Numerics.Tensors (21)
System\Numerics\Tensors\netcore\Tensor.cs (15)
237if (!TensorShape.AreLengthsTheSame(destination.Lengths, lengths)) 272hasMore = TensorShape.AdjustToNextIndex(ranges, dimension - 1, destination.Lengths); 1397if (tensor.Lengths.SequenceEqual(lengths)) 1441if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1450origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1689&& tensor.Lengths.SequenceEqual(other.Lengths) 1880for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 1882if (tensor.Lengths[i] != 1) 1884lengths[index] = tensor.Lengths[i]; 1896if (tensor.Lengths[dimension] != 1) 1903tensor.Lengths[..dimension].CopyTo(lengths); 1904tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2328if (dimension > tensor.Lengths.Length) 2335tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2336tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (2)
28_length = TensorPrimitives.Product(tensor.Lengths[..dimension]); 30_sliceShape = TensorShape.Create((dimension != tensor.Rank) ? tensor.Lengths[dimension..] : [1], tensor.Strides[dimension..], tensor.IsPinned);
System\Numerics\Tensors\netcore\TensorOperation.cs (2)
133destinationIndexes[0] = destination.Lengths[0]; 136destinationIndexes[i] = destination.Lengths[i] - 1;
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
192public int Rank => Lengths.Length; 412result = Tensor.CreateFromShape<T>(Lengths, IsPinned);