23 references to FlattenedLength
System.Numerics.Tensors (23)
System\Numerics\Tensors\netcore\Tensor.cs (2)
465T[] values = _isPinned ? GC.AllocateArray<T>(checked((int)s.FlattenedLength), _isPinned) : (new T[s.FlattenedLength]);
System\Numerics\Tensors\netcore\TensorExtensions.cs (17)
104intermediate.FlattenTo(MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.FlattenedLength)); 119intermediate.FlattenTo(MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.FlattenedLength)); 134intermediate.FlattenTo(MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.FlattenedLength)); 156if (newSize == input.FlattenedLength) 2814nint tempTotal = tensor.FlattenedLength; 2827if (tempLinear != tensor.FlattenedLength) 3121return tensor.FlattenedLength == other.FlattenedLength 6912ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref broadcastedLeft._reference, (int)broadcastedLeft.FlattenedLength); 6913ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref broadcastedRight._reference, (int)broadcastedRight.FlattenedLength); 6956while (copiedValues < slicedDestination.FlattenedLength) 6986destinationSpan = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.FlattenedLength); 7008while (copiedValues < slicedDestination.FlattenedLength) 7060while (copiedValues < slicedDestination.FlattenedLength) 7127while (outputOffset < slicedDestination.FlattenedLength) 7140while (outputOffset < slicedDestination.FlattenedLength) 7153while (outputOffset < slicedDestination.FlattenedLength) 7167while (outputOffset < slicedDestination.FlattenedLength)
System\Numerics\Tensors\netcore\TensorSpan.cs (3)
490if (_items < _span.FlattenedLength) 493return _items < _span.FlattenedLength; 756nint flattenedLength = FlattenedLength;
System\Numerics\Tensors\netcore\TensorSpanDebugView.cs (1)
17_array = new T[span.FlattenedLength];