Tensor Tiling Library
 
Loading...
Searching...
No Matches
TTL_tile Struct Reference

#include <TTL_tiles.h>

Collaboration diagram for TTL_tile:

Public Member Functions

 TTL_tile ()
 Create an empty tile. Empty means it has all dimensions set to zero.
 
bool empty () const
 Check if the tile passed is empty.
 

Data Fields

TTL_shape shape
 
TTL_offset offset
 

Detailed Description

Definition at line 88 of file TTL_cpp/TTL_tiles.h.

Constructor & Destructor Documentation

◆ TTL_tile()

TTL_tile::TTL_tile ( )
inline

Create an empty tile. Empty means it has all dimensions set to zero.

Most operations on an empty tile should turn into no-ops and so an empty tile is the safest default state.

Definition at line 95 of file TTL_cpp/TTL_tiles.h.

Member Function Documentation

◆ empty()

bool TTL_tile::empty ( ) const
inline

Check if the tile passed is empty.

Empty is defined as width of the shape being equal to 0.

Parameters
tileThe tile to check the emptiness of.
Returns
true if shape is empty
false if shape is not empty

Definition at line 107 of file TTL_cpp/TTL_tiles.h.

Field Documentation

◆ offset

TTL_offset TTL_tile::offset
See also
TTL_offset

Definition at line 112 of file TTL_cpp/TTL_tiles.h.

◆ shape

TTL_shape TTL_tile::shape
See also
TTL_shape

Definition at line 111 of file TTL_cpp/TTL_tiles.h.


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