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