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