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); 215nint sumOfAxis = tensors[0].Lengths[dimension]; 225if (tensors[0].Lengths[j] != tensors[i].Lengths[j]) 229sumOfAxis += tensors[i].Lengths[dimension]; 234tensors[0].Lengths.CopyTo(lengths); 1276if (!dimensions.IsEmpty && dimensions.Length != tensor.Lengths.Length) 1288newLengths[i] = tensor.Lengths[tensor.Rank - 1 - i]; 1296if (dimensions[i] >= tensor.Lengths.Length || dimensions[i] < 0) 1300newLengths[i] = tensor.Lengths[dimensions[i]]; 1324if (tensor.Lengths.SequenceEqual(lengths)) 1368if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1375origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1813for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 1815if (tensor.Lengths[i] != 1) 1817lengths[index] = tensor.Lengths[i]; 1829if (tensor.Lengths[dimension] != 1) 1836tensor.Lengths[..dimension].CopyTo(lengths); 1837tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2008if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2048if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2217if (tensor.Lengths.Length < 2) 2223tensor.Lengths.CopyTo(lengths); 2291if (dimension > tensor.Lengths.Length) 2298tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2299tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
266result = Tensor.CreateFromShape<T>(Lengths, IsPinned);