Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
33 references to Lengths
System.Numerics.Tensors (33)
System\Numerics\Tensors\netcore\Tensor.cs (32)
139nint sumOfAxis = tensors[0].Lengths[dimension]; 148if (tensors[0].Lengths[j] != tensors[i].Lengths[j]) 154sumOfAxis += tensors[i].Lengths[dimension]; 159tensors[0].Lengths.CopyTo(lengths); 221nint sumOfAxis = tensors[0].Lengths[dimension]; 233if (tensors[0].Lengths[j] != tensors[i].Lengths[j]) 239sumOfAxis += tensors[i].Lengths[dimension]; 244tensors[0].Lengths.CopyTo(lengths); 1331if (!dimensions.IsEmpty && dimensions.Length != tensor.Lengths.Length) 1343newLengths[i] = tensor.Lengths[tensor.Rank - 1 - i]; 1351if (dimensions[i] >= tensor.Lengths.Length || dimensions[i] < 0) 1355newLengths[i] = tensor.Lengths[dimensions[i]]; 1379if (tensor.Lengths.SequenceEqual(lengths)) 1423if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1430origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1929for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 1931if (tensor.Lengths[i] != 1) 1933lengths[index] = tensor.Lengths[i]; 1945if (tensor.Lengths[dimension] != 1) 1952tensor.Lengths[..dimension].CopyTo(lengths); 1953tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2124if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2164if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2333if (tensor.Lengths.Length < 2) 2339tensor.Lengths.CopyTo(lengths); 2407if (dimension > tensor.Lengths.Length) 2414tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2415tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
266result = Tensor.CreateFromShape<T>(Lengths, IsPinned);