MLIR  20.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/SparseTensor.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 50 of file SparseTensor.h.

Member Function Documentation

◆ inSegment()

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

Definition at line 56 of file SparseTensor.h.

References lvlRange.

◆ isAoS()

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

Definition at line 54 of file SparseTensor.h.

References isSoA.

◆ isSegmentStart()

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

Definition at line 55 of file SparseTensor.h.

References lvlRange.

Member Data Documentation

◆ isSoA

bool mlir::sparse_tensor::COOSegment::isSoA

Definition at line 52 of file SparseTensor.h.

Referenced by isAoS().

◆ lvlRange

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

Definition at line 51 of file SparseTensor.h.

Referenced by inSegment(), and isSegmentStart().


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