Implemented interface member:
property
IsDense
System.Numerics.Tensors.IReadOnlyTensor.IsDense
49 references to IsDense
System.Numerics.Tensors (49)
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (2)
532
if (!
IsDense
)
580
_linearOffset = _span.
IsDense
System\Numerics\Tensors\netcore\Tensor.cs (5)
1873
if (tensor.
IsDense
&& destination.IsDense)
2053
if (tensor.
IsDense
)
2174
if (tensor.
IsDense
&& destination.IsDense && tensor.FlattenedLength == destination.FlattenedLength)
2287
if (tensor.
IsDense
&& other.
IsDense
)
System\Numerics\Tensors\netcore\TensorOperation.cs (42)
58
Debug.Assert(source.
IsDense
);
79
Debug.Assert(source.
IsDense
&& destination.IsDense);
104
Debug.Assert((source.
IsDense
&& destination.IsDense)
107
int sourceDimension = source.
IsDense
? -1 : GetDenseSliceDimension(source._shape, source._shape);
110
if (source.
IsDense
)
132
if (!source.
IsDense
&& sourceDimension < 0)
163
int sourceDimension = input.
IsDense
? -1 : GetDenseSliceDimension(input._shape, input._shape);
165
if (!input.
IsDense
&& sourceDimension < 0)
212
ReadOnlyTensorDimensionSpan<T> slices = source.
IsDense
? default : source.GetDimensionSpan(dimension);
213
nint sliceLength = source.
IsDense
? source.FlattenedLength : slices[0].FlattenedLength;
219
ReadOnlySpan<T> input = source.
IsDense
237
ReadOnlyTensorDimensionSpan<T> sourceSlices = source.
IsDense
? default : source.GetDimensionSpan(sourceDimension);
238
nint sourceSliceLength = source.
IsDense
? source.FlattenedLength : sourceSlices[0].FlattenedLength;
248
if (!source.
IsDense
)
276
ReadOnlyTensorDimensionSpan<T> sourceSlices = source.
IsDense
? default : source.GetDimensionSpan(sourceDimension);
277
nint sourceSliceLength = source.
IsDense
? source.FlattenedLength : sourceSlices[0].FlattenedLength;
287
if (!source.
IsDense
)
474
if (x.
IsDense
&& flattenedLength <= maximumChunkLength)
499
if (x.
IsDense
)
655
if (x.
IsDense
&& y.
IsDense
&& x.Lengths.SequenceEqual(y.Lengths))
698
if (optimizedX.
IsDense
&& optimizedY.
IsDense
&& optimizedX.Lengths.SequenceEqual(optimizedY.Lengths))
781
if (x.
IsDense
)
908
if (x.
IsDense
&& destination.IsDense && sourceLength == destinationLength)
931
if (optimizedSource.
IsDense
&& destination.IsDense && destinationLength <= int.MaxValue)
937
if (optimizedSource.
IsDense
&& destination.IsDense)
1027
if (x.
IsDense
)
1084
if (x.
IsDense
)
1162
if (optimizedX.
IsDense
&& optimizedY.
IsDense
&& destination.IsDense && destinationLength <= int.MaxValue)
1168
if (optimizedX.
IsDense
&& optimizedY.
IsDense
&& destination.IsDense)
1228
if (x.
IsDense
&& y.
IsDense
&& x.Lengths.SequenceEqual(y.Lengths))
1243
if (optimizedX.
IsDense
&& optimizedY.
IsDense
&& optimizedX.Lengths.SequenceEqual(optimizedY.Lengths))
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)
1410
if (x.
IsDense
)