14 references to IsDense
System.Numerics.Tensors (14)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
42
public bool IsDense => _sliceShape.
IsDense
;
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (1)
281
public bool IsDense => _shape.
IsDense
;
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
109
public bool IsDense => _shape.
IsDense
;
System\Numerics\Tensors\netcore\Tensor.cs (6)
1739
if (!shape.
IsDense
&& !shape.Strides.Contains(0))
1746
scoped Span<nint> strides = TensorOperation.RentedBuffer.CreateUninitialized(shape.
IsDense
? 0 : newLengths.Length, out TensorOperation.RentedBuffer<nint> stridesRentedBuffer);
1747
GetReshapeStrides(shape.Lengths, shape.Strides, shape.
IsDense
, newLengths, strides);
1771
if (!shape.
IsDense
&& !shape.Strides.Contains(0))
1778
scoped Span<nint> strides = TensorOperation.RentedBuffer.CreateUninitialized(shape.
IsDense
? 0 : newLengths.Length, out TensorOperation.RentedBuffer<nint> stridesRentedBuffer);
1779
GetReshapeStrides(shape.Lengths, shape.Strides, shape.
IsDense
, newLengths, strides);
System\Numerics\Tensors\netcore\TensorDimensionSpan_1.cs (1)
42
public bool IsDense => _sliceShape.
IsDense
;
System\Numerics\Tensors\netcore\TensorShape.cs (3)
370
if (IsEmpty ||
IsDense
)
707
if (!allowBidirectional && !shape1.IsEmpty && !shape1.
IsDense
)
1198
if (
IsDense
)
System\Numerics\Tensors\netcore\TensorSpan_1.cs (1)
176
public bool IsDense => _shape.
IsDense
;