Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
34 references to Lengths
System.Numerics.Tensors (34)
System\Numerics\Tensors\netcore\Tensor.cs (33)
143nint sumOfAxis = tensors[0].Lengths[dimension]; 152if (tensors[0].Lengths[j] != tensors[i].Lengths[j]) 158sumOfAxis += tensors[i].Lengths[dimension]; 163tensors[0].Lengths.CopyTo(lengths); 219nint sumOfAxis = tensors[0].Lengths[dimension]; 229if (tensors[0].Lengths[j] != tensors[i].Lengths[j]) 233sumOfAxis += tensors[i].Lengths[dimension]; 238tensors[0].Lengths.CopyTo(lengths); 1388if (!dimensions.IsEmpty && dimensions.Length != tensor.Lengths.Length) 1401newLengths[i] = tensor.Lengths[tensor.Rank - 1 - i]; 1410if (dimensions[i] >= tensor.Lengths.Length || dimensions[i] < 0) 1414newLengths[i] = tensor.Lengths[dimensions[i]]; 1440if (tensor.Lengths.SequenceEqual(lengths)) 1484if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1491origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1928int removalCount = tensor.Lengths.Count(1); 1932for (int i = 0; i < tensor.Lengths.Length; i++) 1934if (tensor.Lengths[i] != 1) 1936lengths[index] = tensor.Lengths[i]; 1951if (tensor.Lengths[dimension] != 1) 1956for (int i = 0; i < tensor.Lengths.Length; i++) 1960lengths[index] = tensor.Lengths[i]; 2194if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2234if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2354if (tensor.Lengths.Length < 2) 2361tensor.Lengths.CopyTo(lengths); 2435if (dimension > tensor.Lengths.Length) 2442tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2443tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
304result = Tensor.Create<T>(Lengths, IsPinned);