58 references to FlattenedLength
System.Numerics.Tensors (58)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (3)
496
if (_items < _span.
FlattenedLength
)
499
return _items < _span.
FlattenedLength
;
721
nint flattenedLength =
FlattenedLength
;
System\Numerics\Tensors\netcore\TensorExtensions.cs (54)
58
return T.CreateChecked(sum / T.CreateChecked(x.
FlattenedLength
));
199
if (newSize == input.
FlattenedLength
)
571
for (int i = 0; i < x.
FlattenedLength
; i++)
616
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
655
for (int i = 0; i < x.
FlattenedLength
; i++)
700
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
739
for (int i = 0; i < x.
FlattenedLength
; i++)
946
for (int i = 0; i < x.
FlattenedLength
; i++)
1006
for (int i = 0; i < y.
FlattenedLength
; i++)
1155
for (int i = 0; i < x.
FlattenedLength
; i++)
1215
for (int i = 0; i < y.
FlattenedLength
; i++)
1259
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
1298
for (int i = 0; i < x.
FlattenedLength
; i++)
1337
for (int i = 0; i < y.
FlattenedLength
; i++)
1382
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
1421
for (int i = 0; i < x.
FlattenedLength
; i++)
1460
for (int i = 0; i < y.
FlattenedLength
; i++)
1506
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
1545
for (int i = 0; i < x.
FlattenedLength
; i++)
1584
for (int i = 0; i < y.
FlattenedLength
; i++)
1630
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
1669
for (int i = 0; i < x.
FlattenedLength
; i++)
1708
for (int i = 0; i < y.
FlattenedLength
; i++)
1858
for (int i = 0; i < x.
FlattenedLength
; i++)
1918
for (int i = 0; i < y.
FlattenedLength
; i++)
2067
for (int i = 0; i < x.
FlattenedLength
; i++)
2127
for (int i = 0; i < y.
FlattenedLength
; i++)
2172
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
2211
for (int i = 0; i < x.
FlattenedLength
; i++)
2250
for (int i = 0; i < y.
FlattenedLength
; i++)
2296
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
2335
for (int i = 0; i < x.
FlattenedLength
; i++)
2374
for (int i = 0; i <= y.
FlattenedLength
; i++)
2419
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
2458
for (int i = 0; i < x.
FlattenedLength
; i++)
2497
for (int i = 0; i < y.
FlattenedLength
; i++)
2542
for (int i = 0; i < broadcastedLeft.
FlattenedLength
; i++)
2581
for (int i = 0; i < x.
FlattenedLength
; i++)
2620
for (int i = 0; i < y.
FlattenedLength
; i++)
2885
nint tempTotal = tensor.
FlattenedLength
;
2898
if (tempLinear != tensor.
FlattenedLength
)
3095
while (copiedValues < tensor.
FlattenedLength
)
3121
return tensor.FlattenedLength == other.
FlattenedLength
3133
return tensor.
FlattenedLength
== other.
FlattenedLength
3199
nint totalToCopy = tensor.
FlattenedLength
/ splitCount;
3522
T variance = sum / T.CreateChecked(x.
FlattenedLength
);
3572
while (copiedValues < tensor.
FlattenedLength
)
6881
nint flattenedLength = input.
FlattenedLength
;
6987
inputSpan = MemoryMarshal.CreateSpan(ref input._reference, (int)input.
FlattenedLength
);
7088
ReadOnlySpan<T> span = MemoryMarshal.CreateSpan(ref left._reference, left._shape._memoryLength <= left.
FlattenedLength
? (int)left._shape._memoryLength : (int)left.
FlattenedLength
);
7089
ReadOnlySpan<T> rspan = MemoryMarshal.CreateSpan(ref right._reference, right._shape._memoryLength <= right.
FlattenedLength
? (int)right._shape._memoryLength : (int)right.
FlattenedLength
);
System\Numerics\Tensors\netcore\TensorSpanDebugView.cs (1)
23
_array = new T[span.
FlattenedLength
];