Implemented interface member:
property
IsDense
System.Numerics.Tensors.IReadOnlyTensor.IsDense
42 references to IsDense
System.Numerics.Tensors (42)
System\Numerics\Tensors\netcore\Tensor.cs (11)
303
if (!target.
IsDense
|| destinationLength > int.MaxValue)
363
if (!destination.
IsDense
)
428
nint linearOffset = destination.
IsDense
? offset++ : destination._shape.GetLinearOffsetForDimension(offset++, destination.Rank);
538
if (destination.
IsDense
&& flattenedLength > int.MaxValue)
542
else if (destination.
IsDense
)
602
if (destination.
IsDense
&& flattenedLength > int.MaxValue)
606
else if (destination.
IsDense
)
1873
if (tensor.IsDense && destination.
IsDense
)
1951
Debug.Assert(destination.
IsDense
);
1969
if (destination.
IsDense
)
2174
if (tensor.IsDense && destination.
IsDense
&& tensor.FlattenedLength == destination.FlattenedLength)
System\Numerics\Tensors\netcore\TensorOperation.cs (29)
70
Debug.Assert(destination.
IsDense
);
79
Debug.Assert(source.IsDense && destination.
IsDense
);
104
Debug.Assert((source.IsDense && destination.
IsDense
)
108
if (destination.
IsDense
)
164
int destinationDimension = destination.
IsDense
? -1 : GetDenseSliceDimension(destination._shape, destination._shape);
167
if (!destination.
IsDense
&& destinationDimension < 0)
174
else if (!destination.
IsDense
&& destinationDimension < 0)
189
TensorDimensionSpan<T> slices = destination.
IsDense
? default : destination.GetDimensionSpan(dimension);
190
nint sliceLength = destination.
IsDense
? destination.FlattenedLength : slices[0].FlattenedLength;
196
Span<T> target = destination.
IsDense
274
TensorDimensionSpan<T> destinationSlices = destination.
IsDense
? default : destination.GetDimensionSpan(destinationDimension);
275
nint destinationSliceLength = destination.
IsDense
? destination.FlattenedLength : destinationSlices[0].FlattenedLength;
292
Span<T> target = destination.
IsDense
318
TensorDimensionSpan<T> slices = destination.
IsDense
? default : destination.GetDimensionSpan(dimension);
319
nint sliceLength = destination.
IsDense
? destination.FlattenedLength : slices[0].FlattenedLength;
325
Span<T> target = destination.
IsDense
606
if (x.
IsDense
&& x.FlattenedLength <= int.MaxValue)
612
if (x.
IsDense
)
857
if (destination.
IsDense
&& destination.FlattenedLength <= int.MaxValue)
863
if (destination.
IsDense
)
908
if (x.IsDense && destination.
IsDense
&& sourceLength == destinationLength)
931
if (optimizedSource.IsDense && destination.
IsDense
&& destinationLength <= int.MaxValue)
937
if (optimizedSource.IsDense && destination.
IsDense
)
1162
if (optimizedX.IsDense && optimizedY.IsDense && destination.
IsDense
&& destinationLength <= int.MaxValue)
1168
if (optimizedX.IsDense && optimizedY.IsDense && destination.
IsDense
)
1297
if (optimizedSource.IsDense && destination.
IsDense
&& destinationLength <= int.MaxValue)
1303
if (optimizedSource.IsDense && destination.
IsDense
)
1354
if (optimizedSource.IsDense && destination.
IsDense
&& destinationLength <= int.MaxValue)
1360
if (optimizedSource.IsDense && destination.
IsDense
)
System\Numerics\Tensors\netcore\TensorSpan_1.cs (2)
406
if (!
IsDense
)
501
_linearOffset = _span.
IsDense