23 references to FlattenedLength
System.Numerics.Tensors (23)
System\Numerics\Tensors\netcore\Tensor.cs (2)
466T[] values = _isPinned ? GC.AllocateArray<T>(checked((int)s.FlattenedLength), _isPinned) : (new T[s.FlattenedLength]);
System\Numerics\Tensors\netcore\TensorExtensions.cs (17)
105intermediate.FlattenTo(MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.FlattenedLength)); 120intermediate.FlattenTo(MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.FlattenedLength)); 135intermediate.FlattenTo(MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.FlattenedLength)); 157if (newSize == input.FlattenedLength) 2815nint tempTotal = tensor.FlattenedLength; 2828if (tempLinear != tensor.FlattenedLength) 3122return tensor.FlattenedLength == other.FlattenedLength 6856ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref broadcastedLeft._reference, (int)broadcastedLeft.FlattenedLength); 6857ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref broadcastedRight._reference, (int)broadcastedRight.FlattenedLength); 6900while (copiedValues < slicedDestination.FlattenedLength) 6930destinationSpan = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.FlattenedLength); 6952while (copiedValues < slicedDestination.FlattenedLength) 7004while (copiedValues < slicedDestination.FlattenedLength) 7071while (outputOffset < slicedDestination.FlattenedLength) 7084while (outputOffset < slicedDestination.FlattenedLength) 7097while (outputOffset < slicedDestination.FlattenedLength) 7111while (outputOffset < slicedDestination.FlattenedLength)
System\Numerics\Tensors\netcore\TensorSpan.cs (3)
475if (_items < _span.FlattenedLength) 478return _items < _span.FlattenedLength; 741nint flattenedLength = FlattenedLength;
System\Numerics\Tensors\netcore\TensorSpanDebugView.cs (1)
17_array = new T[span.FlattenedLength];