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

Description of a Shape. More...

#include <TTL_types.h>

Collaboration diagram for TTL_shape:

Public Member Functions

 TTL_shape (TTL_dim width=0, TTL_dim height=1, TTL_dim depth=1)
 Create a description of a Shape.
 
bool empty () const
 A Shape is empty if its width is 0.
 

Data Fields

TTL_dim width
 Number of elements along dimension x.
 
TTL_dim height
 Number of rows along dimension y.
 
TTL_dim depth
 Number of planes along dimension z.
 

Detailed Description

Description of a Shape.

A Shape is a 3D description of an object.

The units are elements

Definition at line 31 of file TTL_cpp/TTL_types.h.

Constructor & Destructor Documentation

◆ TTL_shape()

TTL_shape::TTL_shape ( TTL_dim width = 0,
TTL_dim height = 1,
TTL_dim depth = 1 )
inline

Create a description of a Shape.

See also
TTL_shape for more information.
Parameters
widthThe number of elements of the Tile Shape in the x-axis
heightThe number of elements of the Tile Shape in the y-axis
depthThe number of elements of the Tile Shape in the z-axis
Returns
A TTL_shape describing in Tile Shape requested.

Definition at line 43 of file TTL_cpp/TTL_types.h.

Member Function Documentation

◆ empty()

bool TTL_shape::empty ( ) const
inline

A Shape is empty if its width is 0.

Definition at line 48 of file TTL_cpp/TTL_types.h.

Field Documentation

◆ depth

TTL_dim TTL_shape::depth

Number of planes along dimension z.

Definition at line 54 of file TTL_cpp/TTL_types.h.

◆ height

TTL_dim TTL_shape::height

Number of rows along dimension y.

Definition at line 53 of file TTL_cpp/TTL_types.h.

◆ width

TTL_dim TTL_shape::width

Number of elements along dimension x.

Definition at line 52 of file TTL_cpp/TTL_types.h.


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