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) 2809nint tempTotal = tensor.FlattenedLength; 2822if (tempLinear != tensor.FlattenedLength) 3116return tensor.FlattenedLength == other.FlattenedLength 6850ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref broadcastedLeft._reference, (int)broadcastedLeft.FlattenedLength); 6851ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref broadcastedRight._reference, (int)broadcastedRight.FlattenedLength); 6894while (copiedValues < slicedDestination.FlattenedLength) 6924destinationSpan = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.FlattenedLength); 6946while (copiedValues < slicedDestination.FlattenedLength) 6998while (copiedValues < slicedDestination.FlattenedLength) 7065while (outputOffset < slicedDestination.FlattenedLength) 7078while (outputOffset < slicedDestination.FlattenedLength) 7091while (outputOffset < slicedDestination.FlattenedLength) 7105while (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];