12 references to LinearLength
System.Numerics.Tensors (12)
System\Numerics\Tensors\netcore\Tensor.cs (7)
372T[] values = GC.AllocateUninitializedArray<T>(checked((int)(shape.LinearLength)), pinned); 1528TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 1603ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 2039TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2106ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2481TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned); 2518ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned);
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
30_values = GC.AllocateArray<T>(checked((int)(_shape.LinearLength)), pinned);
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
138nint destinationLinearOffset = destination._shape.LinearLength - 1 - negInnermostStride;
System\Numerics\Tensors\netcore\TensorShape.cs (3)
378if (left.LinearLength != right.LinearLength) 989Debug.Assert(FlattenedLength == LinearLength);