Implemented interface member:
property
FlattenedLength
System.Numerics.Tensors.IReadOnlyTensor.FlattenedLength
71 references to FlattenedLength
System.Numerics.Tensors (71)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
456
if ((_shape.FlattenedLength <= destination.
FlattenedLength
) &&
System\Numerics\Tensors\netcore\Tensor.cs (30)
197
nint destinationLength = destination.
FlattenedLength
;
265
if (destination.
FlattenedLength
== 0)
284
nint destinationLength = destination.
FlattenedLength
;
374
if (destination.
FlattenedLength
== 0)
384
nint destinationBlockLength = destination.
FlattenedLength
/ outerLength;
537
nint flattenedLength = destination.
FlattenedLength
;
565
Span<T> span = MemoryMarshal.CreateSpan(ref slice._reference, (int)slice.
FlattenedLength
);
601
nint flattenedLength = destination.
FlattenedLength
;
626
Span<T> span = MemoryMarshal.CreateSpan(ref slice._reference, (int)slice.
FlattenedLength
);
1871
nint destinationLength = destination.
FlattenedLength
;
1920
nint copyLength = Math.Min(source.FlattenedLength, destination.
FlattenedLength
);
1922
if (copyLength < destination.
FlattenedLength
)
1930
Debug.Assert(start >= 0 && start < destination.
FlattenedLength
);
1938
nint sliceLength = slices[0].
FlattenedLength
;
1952
Debug.Assert(start >= 0 && start < destination.
FlattenedLength
);
1953
if (destination.
FlattenedLength
<= int.MaxValue)
1959
for (nint cleared = start; cleared < destination.
FlattenedLength
;)
1961
int count = (int)Math.Min(destination.
FlattenedLength
- cleared, int.MaxValue);
1975
if (destination.
FlattenedLength
- start >= TensorOperation.MinSlicedOperationLength
1981
for (nint i = start; i < destination.
FlattenedLength
; i++)
2040
if (destination.
FlattenedLength
== 0)
2069
nint axisLength = dimension == -1 ? tensor.
FlattenedLength
: tensor.Lengths[dimension];
2082
for (nint block = 0; block < tensor.
FlattenedLength
; block += blockLength)
2104
for (nint block = 0; block < tensor.
FlattenedLength
; block += blockLength)
2129
for (nint block = 0; block < tensor.
FlattenedLength
; block += blockLength)
2174
if (tensor.IsDense && destination.IsDense && tensor.FlattenedLength == destination.
FlattenedLength
)
2187
if (destination.
FlattenedLength
>= TensorOperation.MinSlicedOperationLength
2233
for (nint offset = 0; offset < destination.
FlattenedLength
;)
2235
int count = (int)Math.Min(destination.
FlattenedLength
- offset, int.MaxValue);
2785
if (destination.
FlattenedLength
== 0)
System\Numerics\Tensors\netcore\TensorOperation.cs (39)
23
if (source.FlattenedLength == 0 || destination.
FlattenedLength
== 0)
66
=> AsDenseSpan(destination, 0, checked((int)destination.
FlattenedLength
));
71
Debug.Assert(offset >= 0 && offset <= destination.
FlattenedLength
);
72
Debug.Assert(length >= 0 && length <= destination.
FlattenedLength
- offset);
81
Debug.Assert(destinationOffset >= 0 && copyLength <= destination.
FlattenedLength
- destinationOffset);
103
Debug.Assert(destinationOffset >= 0 && copyLength <= destination.
FlattenedLength
- destinationOffset);
190
nint sliceLength = destination.IsDense ? destination.
FlattenedLength
: slices[0].
FlattenedLength
;
191
for (nint copied = 0; copied < destination.
FlattenedLength
;)
193
nint position = destination.
FlattenedLength
- copied - 1;
236
nint destinationSliceLength = destinationSlices[0].
FlattenedLength
;
275
nint destinationSliceLength = destination.IsDense ? destination.
FlattenedLength
: destinationSlices[0].
FlattenedLength
;
283
for (nint copied = 0; copied < destination.
FlattenedLength
;)
319
nint sliceLength = destination.IsDense ? destination.
FlattenedLength
: slices[0].
FlattenedLength
;
341
for (nint offset = 0; offset < destination.
FlattenedLength
;)
343
int count = (int)Math.Min(destination.
FlattenedLength
- offset, int.MaxValue);
353
for (nint offset = 0; offset < destination.
FlattenedLength
;)
355
int count = (int)Math.Min(destination.
FlattenedLength
- offset, int.MaxValue);
365
for (nint offset = 0; offset < destination.
FlattenedLength
;)
367
int count = (int)Math.Min(destination.
FlattenedLength
- offset, int.MaxValue);
376
for (nint offset = 0; offset < destination.
FlattenedLength
;)
378
int count = (int)Math.Min(destination.
FlattenedLength
- offset, int.MaxValue);
606
if (x.IsDense && x.
FlattenedLength
<= int.MaxValue)
614
for (nint offset = 0; offset < x.
FlattenedLength
;)
616
int count = (int)Math.Min(x.
FlattenedLength
- offset, int.MaxValue);
636
for (nint i = 0; i < x.
FlattenedLength
; i++)
857
if (destination.IsDense && destination.
FlattenedLength
<= int.MaxValue)
865
for (nint offset = 0; offset < destination.
FlattenedLength
;)
867
int count = (int)Math.Min(destination.
FlattenedLength
- offset, int.MaxValue);
887
for (nint i = 0; i < destination.
FlattenedLength
; i++)
903
nint destinationLength = destination.
FlattenedLength
;
943
if (isCopy && destination.
FlattenedLength
>= MinSlicedOperationLength)
946
if (TryCopyDenseSlices(optimizedSource, new TensorSpan<TArg>(ref destinationReference, destination._shape), destination.
FlattenedLength
))
992
nint destinationLength = destination.
FlattenedLength
;
1157
nint destinationLength = destination.
FlattenedLength
;
1293
nint destinationLength = destination.
FlattenedLength
;
1350
nint destinationLength = destination.
FlattenedLength
;
System\Numerics\Tensors\netcore\TensorSpanDebugView.cs (1)
14
_array = new T[span.
FlattenedLength
];