Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
116 references to Lengths
System.Numerics.Tensors (116)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
31_length = TensorPrimitives.Product(tensor.Lengths[..dimension]); 33_sliceShape = TensorShape.Create((dimension != tensor.Rank) ? tensor.Lengths[dimension..] : [1], tensor.Strides[dimension..], tensor.IsPinned);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
291public int Rank => Lengths.Length; 531Tensor<T> tmp = Tensor.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (110)
57return Broadcast(source, lengthsSource.Lengths); 424Tensor<bool> destination = CreateFromShapeUninitialized<bool>(x.Lengths); 585Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 766Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 947Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1128Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1473if (tensor.Lengths.SequenceEqual(lengths)) 1518if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1525origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1608Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 1622Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 1666for (int i = (int)tensor.Lengths[dimension]; i > 0; i--) 1669dstIndexes[dimension] = new NRange(tensor.Lengths[dimension] - i, tensor.Lengths[dimension] - i + 1); 1689&& tensor.Lengths.SequenceEqual(other.Lengths) 1701&& tensor.Lengths.SequenceEqual(other.Lengths) 1751if (tensor.Lengths[(int)dimension] % splitCount != 0) 1758nint[] newLengths = [.. tensor.Lengths]; 1947for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 1949if (tensor.Lengths[i] != 1) 1951lengths[index] = tensor.Lengths[i]; 1963if (tensor.Lengths[dimension] != 1) 1970tensor.Lengths[..dimension].CopyTo(lengths); 1971tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2081sb.AppendJoin(", ", tensor.Lengths); 2090nint length = nint.Min(tensor.Lengths[0], maximumLengths[0]); 2106nint length = nint.Min(tensor.Lengths[0], maximumLengths[0]); 2124TensorShape tmpShape = TensorShape.Create(tensor.Lengths[1..], tensor.Strides[1..], tensor.IsPinned); 2136if (length != tensor.Lengths[0]) 2172if (length != tensor.Lengths[0]) 2365if (dimension > tensor.Lengths.Length) 2372tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2373tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2405Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2432Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2459Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2486Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2513Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2540Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2567Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2594Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2622Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2649Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2676Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 2705Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2732Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2759Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 2787Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2814Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2858Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2885Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2914Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 2945Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 2976Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3006Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3019Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3061Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3088Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3141Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3178Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3237Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3264Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3289Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3312Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3335Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3358Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3381Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3461Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3484Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 3508Tensor<int> destination = CreateFromShapeUninitialized<int>(x.Lengths); 3580Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3607Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3654Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3680Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3707Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3734Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3761Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3788Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3852Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3915Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3978Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4041Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4104Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4167Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4230Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4293Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4331Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4378Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4401Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 4437Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4460Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4484Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4510Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4537Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4562Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4585Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4609Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4632Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4656Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4681Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4706Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4729Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4755Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4783Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4856Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4879Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4902Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4925Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4948Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_OnesComplement.cs (1)
15Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_UnaryNegation.cs (1)
14Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);