Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
136 references to Lengths
System.Numerics.Tensors (136)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
34ReadOnlySpan<nint> lengths = tensor.Lengths;
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
294public int Rank => Lengths.Length; 534Tensor<T> tmp = Tensor.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (97)
59return Broadcast(source, lengthsSource.Lengths); 327nint length = source.Lengths[dimension]; 689Tensor<bool> destination = CreateFromShapeUninitialized<bool>(x.Lengths); 850Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1031Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1212Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1393Tensor<bool> destination = CreateFromShape<bool>(x.Lengths, false); 1765if (tensor.Lengths.SequenceEqual(lengths)) 1996Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 2010Tensor<T> output = CreateFromShape<T>(tensor.Lengths); 2049if ((tensor._shape.LinearLength == 1) || (dimension >= 0 && tensor.Lengths[dimension] == 1)) 2195else if (tensor.Lengths[dimension] == 1) 2277|| !TensorShape.AreLengthsEquivalent(tensor.Lengths, other.Lengths)) 2643for (int i = 0, index = 0; i < tensor.Lengths.Length; i++) 2645if (tensor.Lengths[i] != 1) 2647lengths[index] = tensor.Lengths[i]; 2659if (tensor.Lengths[dimension] != 1) 2666tensor.Lengths[..dimension].CopyTo(lengths); 2667tensor.Lengths[(dimension + 1)..].CopyTo(lengths[dimension..]); 2835sb.AppendJoin(", ", tensor.Lengths); 2844nint length = nint.Min(tensor.Lengths[0], maximumLengths[0]); 2861ReadOnlySpan<nint> lengths = tensor.Lengths; 2930if (length != tensor.Lengths[0]) 3193Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3220Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3247Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3274Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3301Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3328Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3355Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3382Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3437Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3464Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 3520Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3547Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 3575Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3602Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3646Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3673Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3702Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3733Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3764Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3794Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3849Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3876Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3929Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3966Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4025Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4052Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4077Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4100Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4123Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4146Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4169Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4249Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4272Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 4296Tensor<int> destination = CreateFromShapeUninitialized<int>(x.Lengths); 4364Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4391Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4438Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4464Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4491Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4518Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4545Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4572Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4636Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4699Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4762Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4825Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4888Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4951Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5014Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5077Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5115Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5162Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5185Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 5221Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5244Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5268Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5294Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5321Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5346Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5369Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5393Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5416Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5440Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5465Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5490Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5513Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5539Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5566Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5638Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5661Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5684Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5707Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5730Tensor<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 (1)
30Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseOr.cs (1)
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 (1)
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 (20)
162ReadOnlyTensorSpan<T> input = source.Lengths.SequenceEqual(destination.Lengths) ? source : BroadcastSource(source, destination._shape); 408ReadOnlySpan<nint> sourceLengths = source.Lengths; 655if (x.IsDense && y.IsDense && x.Lengths.SequenceEqual(y.Lengths)) 696ReadOnlyTensorSpan<TArg> optimizedX = x.Lengths.SequenceEqual(destinationShape.Lengths) ? x : BroadcastSource(x, destinationShape); 697ReadOnlyTensorSpan<TArg> optimizedY = y.Lengths.SequenceEqual(destinationShape.Lengths) ? y : BroadcastSource(y, destinationShape); 698if (optimizedX.IsDense && optimizedY.IsDense && optimizedX.Lengths.SequenceEqual(optimizedY.Lengths)) 928ReadOnlyTensorSpan<TArg> optimizedSource = x.Lengths.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape); 993ReadOnlyTensorSpan<TArg> source = x.Lengths.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape); 1158ReadOnlyTensorSpan<TArg1> optimizedX = x.Lengths.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape); 1159ReadOnlyTensorSpan<TArg2> optimizedY = y.Lengths.SequenceEqual(destinationLengths) ? y : BroadcastSource(y, destination._shape); 1228if (x.IsDense && y.IsDense && x.Lengths.SequenceEqual(y.Lengths)) 1241ReadOnlyTensorSpan<TArg> optimizedX = x.Lengths.SequenceEqual(destinationShape.Lengths) ? x : BroadcastSource(x, destinationShape); 1242ReadOnlyTensorSpan<TArg> optimizedY = y.Lengths.SequenceEqual(destinationShape.Lengths) ? y : BroadcastSource(y, destinationShape); 1243if (optimizedX.IsDense && optimizedY.IsDense && optimizedX.Lengths.SequenceEqual(optimizedY.Lengths)) 1294ReadOnlyTensorSpan<TArg1> optimizedSource = x.Lengths.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape); 1351ReadOnlyTensorSpan<TArg> optimizedSource = y.Lengths.SequenceEqual(destinationLengths) ? y : BroadcastSource(y, destination._shape);