30 references to LinearLength
System.Numerics.Tensors (30)
System\Numerics\Tensors\netcore\Tensor.cs (24)
438T[] array = GC.AllocateUninitializedArray<T>(checked((int)(shape.LinearLength)), pinned); 446T[] values = GC.AllocateUninitializedArray<T>(checked((int)(shape.LinearLength)), pinned); 462Span<T> span = MemoryMarshal.CreateSpan<T>(ref destination._reference, (int)destination._shape.LinearLength); 485Span<T> span = MemoryMarshal.CreateSpan<T>(ref destination._reference, (int)destination._shape.LinearLength); 1576TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides); 1651ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides); 1708ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref tensor._reference, (int)tensor._shape.LinearLength); 1709Span<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)); 2055TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..newRank], strides[..newRank], strideOrder[..newRank]); 2137ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..newRank], strides[..newRank], strideOrder[..newRank]); 2496TensorSpan<T> output = new TensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides); 2533ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides); 3928ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength); 3940ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength); 3951ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref x._reference, (int)x._shape.LinearLength); 3964ReadOnlySpan<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)
138nint destinationLinearOffset = destination._shape.LinearLength;
System\Numerics\Tensors\netcore\TensorShape.cs (3)
448if (left.LinearLength != right.LinearLength) 1081Debug.Assert(FlattenedLength == LinearLength);