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
6912
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref broadcastedLeft._reference, (int)broadcastedLeft.
FlattenedLength
);
6913
ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref broadcastedRight._reference, (int)broadcastedRight.
FlattenedLength
);
6956
while (copiedValues < slicedDestination.
FlattenedLength
)
6986
destinationSpan = MemoryMarshal.CreateSpan(ref destination._reference, (int)destination.
FlattenedLength
);
7008
while (copiedValues < slicedDestination.
FlattenedLength
)
7060
while (copiedValues < slicedDestination.
FlattenedLength
)
7127
while (outputOffset < slicedDestination.
FlattenedLength
)
7140
while (outputOffset < slicedDestination.
FlattenedLength
)
7153
while (outputOffset < slicedDestination.
FlattenedLength
)
7167
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
];