sub_t Struct Reference

Metadata describing subscript. More...

#include <index.h>

Data Fields

enum stype_t type
 What type of subscript? More...
 
union {
   struct {
      int   first
 
      int   inc
 
   }   lin
 Linear span (zero-index) More...
 
   struct {
      unsigned   pos
 
   }   non
 Position in inds array (pos: zero-index) More...
 
   struct {
      sty_t   ty
 underlying data type More...
 
      int   id
 Which device pointer (0,1,2) More...
 
   }   gpu
 Which device pointer to use. More...
 
} d
 

Detailed Description

Metadata describing subscript.

Field Documentation

enum stype_t type

What type of subscript?

int first
int inc
struct { ... } lin

Linear span (zero-index)

unsigned pos
struct { ... } non

Position in inds array (pos: zero-index)

sty_t ty

underlying data type

int id

Which device pointer (0,1,2)

struct { ... } gpu

Which device pointer to use.

union { ... } d

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