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); 1371if (!dimensions.IsEmpty && dimensions.Length != tensor.Lengths.Length) 1384newLengths[i] = tensor.Lengths[tensor.Rank - 1 - i]; 1393if (dimensions[i] >= tensor.Lengths.Length || dimensions[i] < 0) 1397newLengths[i] = tensor.Lengths[dimensions[i]]; 1423if (tensor.Lengths.SequenceEqual(lengths)) 1467if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1474origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1911int removalCount = tensor.Lengths.Count(1); 1915for (int i = 0; i < tensor.Lengths.Length; i++) 1917if (tensor.Lengths[i] != 1) 1919lengths[index] = tensor.Lengths[i]; 1934if (tensor.Lengths[dimension] != 1) 1939for (int i = 0; i < tensor.Lengths.Length; i++) 1943lengths[index] = tensor.Lengths[i]; 2177if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2217if (!tensors[0].Lengths.SequenceEqual(tensors[i].Lengths)) 2337if (tensor.Lengths.Length < 2) 2344tensor.Lengths.CopyTo(lengths); 2418if (dimension > tensor.Lengths.Length) 2425tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2426tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1));
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
307result = Tensor.Create<T>(Lengths, IsPinned);