Implemented interface member:
property
Lengths
System.Numerics.Tensors.IReadOnlyTensor.Lengths
125 references to Lengths
System.Numerics.Tensors (125)
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; 520Tensor<T> tmp = Tensor.CreateFromShape<T>(Lengths, IsPinned);
System\Numerics\Tensors\netcore\Tensor.cs (121)
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..]); 2103nint length = nint.Max(tensor.Lengths[0], maximumLengths[0]); 2113TensorShape tmpShape = TensorShape.Create(tensor.Lengths[1..], tensor.Strides[1..], tensor.IsPinned); 2120if (length != tensor.Lengths[0]) 2138if (length != tensor.Lengths[0]) 2316if (dimension > tensor.Lengths.Length) 2323tensor.Lengths.Slice(0, dimension).CopyTo(newLengths); 2324tensor.Lengths.Slice(dimension).CopyTo(newLengths.Slice(dimension + 1)); 2356Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2383Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2410Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2437Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2478Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2520Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2547Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2574Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2601Tensor<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>(y.Lengths); 2712Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2739Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2766Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 2794Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2821Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2866Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2893Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2922Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2949Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 2977Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3004Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3033Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3064Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3095Tensor<TTo> destination = CreateFromShapeUninitialized<TTo>(source.Lengths); 3125Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3138Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3180Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3207Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3260Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3297Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3341Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3354Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 3441Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3468Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3493Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3516Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3539Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3562Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3585Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3665Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3688Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 3712Tensor<int> destination = CreateFromShapeUninitialized<int>(x.Lengths); 3784Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3811Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3858Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3884Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3911Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3938Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3965Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 3992Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4056Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4119Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4182Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4245Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4308Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4371Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4434Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4497Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4524Tensor<T> destination = CreateFromShape<T>(x.Lengths); 4579Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4616Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4639Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4686Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4709Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 4745Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4768Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4792Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4818Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4845Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4870Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4893Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4917Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4940Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4964Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 4989Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5014Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5037Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5063Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5091Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5137Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5150Tensor<T> destination = CreateFromShapeUninitialized<T>(y.Lengths); 5247Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5270Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5293Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5316Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5339Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths); 5388Tensor<T> destination = CreateFromShapeUninitialized<T>(x.Lengths);