30 references to LinearLength
System.Numerics.Tensors (30)
System\Numerics\Tensors\netcore\Tensor.cs (24)
438
T[] array = GC.AllocateUninitializedArray<T>(checked((int)(shape.
LinearLength
)), pinned);
446
T[] values = GC.AllocateUninitializedArray<T>(checked((int)(shape.
LinearLength
)), pinned);
462
Span<T> span = MemoryMarshal.CreateSpan<T>(ref destination._reference, (int)destination._shape.
LinearLength
);
485
Span<T> span = MemoryMarshal.CreateSpan<T>(ref destination._reference, (int)destination._shape.
LinearLength
);
1576
TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, strides);
1651
ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, strides);
1708
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._reference, (int)tensor._shape.
LinearLength
);
1709
Span<T> ospan = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination._shape.
LinearLength
);
1804
&& tensor._shape.
LinearLength
== other._shape.
LinearLength
1806
&& MemoryMarshal.CreateReadOnlySpan(in tensor.GetPinnableReference(), (int)tensor._shape.
LinearLength
).SequenceEqual(MemoryMarshal.CreateReadOnlySpan(in other.GetPinnableReference(), (int)other._shape.
LinearLength
));
1816
&& tensor._shape.
LinearLength
== other._shape.
LinearLength
1818
&& MemoryMarshal.CreateReadOnlySpan(in tensor.GetPinnableReference(), (int)tensor._shape.
LinearLength
).SequenceEqual(MemoryMarshal.CreateReadOnlySpan(in other.GetPinnableReference(), (int)other._shape.
LinearLength
));
2055
TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, lengths[..newRank], strides[..newRank], strideOrder[..newRank]);
2137
ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, lengths[..newRank], strides[..newRank], strideOrder[..newRank]);
2496
TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, newStrides);
2533
ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.
LinearLength
, newLengths, newStrides);
3928
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
3940
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
3951
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
3964
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.
LinearLength
);
System\Numerics\Tensors\netcore\Tensor_1.cs (2)
34
_values = GC.AllocateArray<T>(checked((int)(_shape.
LinearLength
)), pinned);
43
_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)
448
if (left.
LinearLength
!= right.
LinearLength
)
1081
Debug.Assert(FlattenedLength ==
LinearLength
);