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