MLIR  19.0.0git
Public Member Functions | Public Attributes | List of all members
mlir::sparse_tensor::COOSegment Struct Reference

A simple structure that encodes a range of levels in the sparse tensors that forms a COO segment. More...

#include "mlir/Dialect/SparseTensor/IR/SparseTensorType.h"

Public Member Functions

bool isAoS () const
 
bool isSegmentStart (Level l) const
 
bool inSegment (Level l) const
 

Public Attributes

std::pair< Level, LevellvlRange
 
bool isSoA
 

Detailed Description

A simple structure that encodes a range of levels in the sparse tensors that forms a COO segment.

Definition at line 23 of file SparseTensorType.h.

Member Function Documentation

◆ inSegment()

bool mlir::sparse_tensor::COOSegment::inSegment ( Level  l) const
inline

Definition at line 29 of file SparseTensorType.h.

References lvlRange.

◆ isAoS()

bool mlir::sparse_tensor::COOSegment::isAoS ( ) const
inline

Definition at line 27 of file SparseTensorType.h.

References isSoA.

◆ isSegmentStart()

bool mlir::sparse_tensor::COOSegment::isSegmentStart ( Level  l) const
inline

Definition at line 28 of file SparseTensorType.h.

References lvlRange.

Member Data Documentation

◆ isSoA

bool mlir::sparse_tensor::COOSegment::isSoA

Definition at line 25 of file SparseTensorType.h.

Referenced by isAoS().

◆ lvlRange

std::pair<Level, Level> mlir::sparse_tensor::COOSegment::lvlRange

Definition at line 24 of file SparseTensorType.h.

Referenced by inSegment(), and isSegmentStart().


The documentation for this struct was generated from the following file: