28 references to LinearLength
System.Numerics.Tensors (28)
System\Numerics\Tensors\netcore\Tensor.cs (23)
422
T[] values = GC.AllocateUninitializedArray<T>(checked((int)(shape.
LinearLength
)), pinned);
438
Span<T> span = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination._shape.
LinearLength
);
461
Span<T> span = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination._shape.
LinearLength
);
1548
TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, strides, tensor.IsPinned);
1623
ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, strides, tensor.IsPinned);
1680
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._reference, (int)tensor._shape.
LinearLength
);
1681
Span<T> ospan = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination._shape.
LinearLength
);
1776
&& tensor._shape.
LinearLength
== other._shape.
LinearLength
1778
&& MemoryMarshal.CreateReadOnlySpan(in tensor.GetPinnableReference(), (int)tensor._shape.
LinearLength
).SequenceEqual(MemoryMarshal.CreateReadOnlySpan(in other.GetPinnableReference(), (int)other._shape.
LinearLength
));
1788
&& tensor._shape.
LinearLength
== other._shape.
LinearLength
1790
&& MemoryMarshal.CreateReadOnlySpan(in tensor.GetPinnableReference(), (int)tensor._shape.
LinearLength
).SequenceEqual(MemoryMarshal.CreateReadOnlySpan(in other.GetPinnableReference(), (int)other._shape.
LinearLength
));
1998
TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, lengths[..rank], strides[..rank], tensor.IsPinned);
2065
ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, lengths[..rank], strides[..rank], tensor.IsPinned);
2391
TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, newStrides, tensor.IsPinned);
2428
ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, newStrides, tensor.IsPinned);
3823
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
3835
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
3846
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
3859
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)
383
if (left.
LinearLength
!= right.
LinearLength
)
976
Debug.Assert(FlattenedLength ==
LinearLength
);