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)
140nint sumOfAxis = tensors[0].Lengths[dimension]; 149if (tensors[0].Lengths[j] != tensors[i].Lengths[j]) 155sumOfAxis += tensors[i].Lengths[dimension]; 160tensors[0].Lengths.CopyTo(lengths); 216nint sumOfAxis = tensors[0].Lengths[dimension]; 226if (tensors[0].Lengths[j] != tensors[i].Lengths[j]) 230sumOfAxis += tensors[i].Lengths[dimension]; 235tensors[0].Lengths.CopyTo(lengths); 1364if (!dimensions.IsEmpty && dimensions.Length != tensor.Lengths.Length) 1376newLengths[i] = tensor.Lengths[tensor.Rank - 1 - i]; 1384if (dimensions[i] >= tensor.Lengths.Length || dimensions[i] < 0) 1388newLengths[i] = tensor.Lengths[dimensions[i]]; 1412if (tensor.Lengths.SequenceEqual(lengths)) 1456if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1463origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1901for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 1903if (tensor.Lengths[i] != 1) 1905lengths[index] = tensor.Lengths[i]; 1917if (tensor.Lengths[dimension] != 1) 1924tensor.Lengths[..dimension].CopyTo(lengths); 1925tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2096if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2136if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2256if (tensor.Lengths.Length < 2) 2262tensor.Lengths.CopyTo(lengths); 2330if (dimension > tensor.Lengths.Length) 2337tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2338tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
260result = Tensor.Create<T>(Lengths, IsPinned);