28 references to LinearLength
System.Numerics.Tensors (28)
System\Numerics\Tensors\netcore\Tensor.cs (23)
334
T[] values = GC.AllocateUninitializedArray<T>(checked((int)(shape.
LinearLength
)), pinned);
350
Span<T> span = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination._shape.
LinearLength
);
373
Span<T> span = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination._shape.
LinearLength
);
1460
TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, strides, tensor.IsPinned);
1535
ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, strides, tensor.IsPinned);
1592
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._reference, (int)tensor._shape.
LinearLength
);
1593
Span<T> ospan = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination._shape.
LinearLength
);
1688
&& tensor._shape.
LinearLength
== other._shape.
LinearLength
1690
&& MemoryMarshal.CreateReadOnlySpan(in tensor.GetPinnableReference(), (int)tensor._shape.
LinearLength
).SequenceEqual(MemoryMarshal.CreateReadOnlySpan(in other.GetPinnableReference(), (int)other._shape.
LinearLength
));
1700
&& tensor._shape.
LinearLength
== other._shape.
LinearLength
1702
&& MemoryMarshal.CreateReadOnlySpan(in tensor.GetPinnableReference(), (int)tensor._shape.
LinearLength
).SequenceEqual(MemoryMarshal.CreateReadOnlySpan(in other.GetPinnableReference(), (int)other._shape.
LinearLength
));
1910
TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, lengths[..rank], strides[..rank], tensor.IsPinned);
1977
ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, lengths[..rank], strides[..rank], tensor.IsPinned);
2352
TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, newStrides, tensor.IsPinned);
2389
ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, newStrides, tensor.IsPinned);
3531
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
3543
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
3554
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
3567
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
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
;
System\Numerics\Tensors\netcore\TensorShape.cs (3)
378
if (left.
LinearLength
!= right.
LinearLength
)
971
Debug.Assert(FlattenedLength ==
LinearLength
);