Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
134 references to Lengths
System.Numerics.Tensors (134)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
28_length = TensorPrimitives.Product(tensor.Lengths[..dimension]); 30_sliceShape = TensorShape.Create((dimension != tensor.Rank) ? tensor.Lengths[dimension..] : [1], tensor.Strides[dimension..], tensor.IsPinned);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
288public int Rank => Lengths.Length; 527Tensor<T> tmp = Tensor.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (109)
57return Broadcast(source, lengthsSource.Lengths); 479Tensor<bool> destination = CreateFromShapeUninitialized<bool>(x.Lengths); 640Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 821Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1002Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1183Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1528if (tensor.Lengths.SequenceEqual(lengths)) 1573if (lengthOffset < tensor.Rank && newLengths[i] == tensor.Lengths[lengthOffset]) 1580origStrides.Insert(i, tensor.Strides[i] * tensor.Lengths[i]); 1705Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 1719Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 1763for (int i = (int)tensor.Lengths[dimension]; i > 0; i--) 1766dstIndexes[dimension] = new NRange(tensor.Lengths[dimension] - i, tensor.Lengths[dimension] - i + 1); 1794|| !tensor.Lengths.SequenceEqual(other.Lengths)) 1867if (tensor.Lengths[(int)dimension] % splitCount != 0) 1874nint[] newLengths = [.. tensor.Lengths]; 2063for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 2065if (tensor.Lengths[i] != 1) 2067lengths[index] = tensor.Lengths[i]; 2079if (tensor.Lengths[dimension] != 1) 2086tensor.Lengths[..dimension].CopyTo(lengths); 2087tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2197sb.AppendJoin(", ", tensor.Lengths); 2206nint length = nint.Min(tensor.Lengths[0], maximumLengths[0]); 2222nint length = nint.Min(tensor.Lengths[0], maximumLengths[0]); 2240TensorShape tmpShape = TensorShape.Create(tensor.Lengths[1..], tensor.Strides[1..], tensor.IsPinned); 2252if (length != tensor.Lengths[0]) 2288if (length != tensor.Lengths[0]) 2481if (dimension > tensor.Lengths.Length) 2488tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2489tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2521Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2548Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2575Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2602Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2629Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2656Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2683Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2710Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2738Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2765Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2792Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 2821Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2848Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2875Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 2903Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2930Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2974Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3001Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3030Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3061Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3092Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3122Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3135Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3177Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3204Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3257Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3294Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3353Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3380Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3405Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3428Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3451Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3474Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3497Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3577Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3600Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 3624Tensor<int> destination = CreateFromShapeUninitialized<int>(x.Lengths); 3776Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3803Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3850Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3876Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3903Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3930Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3957Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3984Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4048Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4111Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4174Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4237Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4300Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4363Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4426Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4489Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4527Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4574Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4597Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 4633Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4656Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4680Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4706Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4733Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4758Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4781Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4805Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4828Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4852Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4877Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4902Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4925Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4951Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4979Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5051Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5074Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5097Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5120Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5143Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Addition.cs (1)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseAnd.cs (2)
17Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseOr.cs (2)
17Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Decrement.cs (1)
15Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Division.cs (2)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 43Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_ExclusiveOr.cs (2)
17Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Increment.cs (1)
15Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_LeftShift.cs (1)
16Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Multiply.cs (1)
30Tensor<T> destination = CreateFromShape<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_RightShift.cs (1)
16Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_Subtraction.cs (2)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 43Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_UnaryNegation.cs (1)
14Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_UnsignedRightShift.cs (1)
16Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\TensorOperation.cs (2)
372ReadOnlySpan<nint> xLengths = x.Lengths; 373ReadOnlySpan<nint> yLengths = y.Lengths;