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); 1344if (!dimensions.IsEmpty && dimensions.Length != tensor.Lengths.Length) 1356newLengths[i] = tensor.Lengths[tensor.Rank - 1 - i]; 1364if (dimensions[i] >= tensor.Lengths.Length || dimensions[i] < 0) 1368newLengths[i] = tensor.Lengths[dimensions[i]]; 1392if (tensor.Lengths.SequenceEqual(lengths)) 1436if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1443origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1942for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 1944if (tensor.Lengths[i] != 1) 1946lengths[index] = tensor.Lengths[i]; 1958if (tensor.Lengths[dimension] != 1) 1965tensor.Lengths[..dimension].CopyTo(lengths); 1966tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2137if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2177if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2346if (tensor.Lengths.Length < 2) 2352tensor.Lengths.CopyTo(lengths); 2420if (dimension > tensor.Lengths.Length) 2427tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2428tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
266result = Tensor.CreateFromShape<T>(Lengths, IsPinned);