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