|
PULSAR
0.1
Parallel Unified Linear Algebra with Systolic Arrays
|
PRT tuple. More...
#include "prt.h"

Go to the source code of this file.
Macros | |
| #define | prt_tuple_new1(a) prt_tuple_new(1,a) |
| #define | prt_tuple_new2(a, b) prt_tuple_new(2,a,b) |
| #define | prt_tuple_new3(a, b, c) prt_tuple_new(3,a,b,c) |
| #define | prt_tuple_new4(a, b, c, d) prt_tuple_new(4,a,b,c,d) |
| #define | prt_tuple_new5(a, b, c, d, e) prt_tuple_new(5,a,b,c,d,e) |
| #define | prt_tuple_new6(a, b, c, d, e, f) prt_tuple_new(6,a,b,c,d,e,f) |
Functions | |
| int * | prt_tuple_new (int len,...) |
| tuple constructor Allocates memory for the tuple plus the termination symbol (INT_MAX). More... | |
| int | prt_tuple_len (int *tuple) |
| tuple length More... | |
| int * | prt_tuple_cat (int *first_tuple,...) |
| tuple concatenate Join a variable length, NULL-terminated, list of tuples. More... | |
| void | prt_tuple_delete (int *tuple) |
| tuple destructor More... | |
| int * | prt_tuple_copy (int *in_tuple) |
| tuple copy constructor More... | |
| int | prt_tuple_compare (void *tuple_a, void *tuple_b) |
| tuple comparison More... | |
| int | prt_tuple_equal (void *tuple_a, void *tuple_b) |
| tuple equality check Check if tuples are identical in length and content. More... | |
| void | prt_tuple_print (int *tuple) |
| tuple print More... | |
| unsigned int | prt_tuple_hash (void *tuple) |
| tuple hash Required by the VSA's tuples hash table. Computes the lenght in characters and calls a string hash function. More... | |
PRT tuple.
Tuples uniquely identify VDPs in a VSA. Tuple is an array of integers terminated with INT_MAX. For all practical purposes a tuple behaves like a string.
PULSAR Runtime /pulsar/ Copyright (C) 2012-2013 University of Tennessee.
Definition in file prt_tuple.h.
| #define prt_tuple_new1 | ( | a | ) | prt_tuple_new(1,a) |
Definition at line 34 of file prt_tuple.h.
| #define prt_tuple_new2 | ( | a, | |
| b | |||
| ) | prt_tuple_new(2,a,b) |
Definition at line 35 of file prt_tuple.h.
| #define prt_tuple_new3 | ( | a, | |
| b, | |||
| c | |||
| ) | prt_tuple_new(3,a,b,c) |
Definition at line 36 of file prt_tuple.h.
| #define prt_tuple_new4 | ( | a, | |
| b, | |||
| c, | |||
| d | |||
| ) | prt_tuple_new(4,a,b,c,d) |
Definition at line 37 of file prt_tuple.h.
| #define prt_tuple_new5 | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e | |||
| ) | prt_tuple_new(5,a,b,c,d,e) |
Definition at line 38 of file prt_tuple.h.
| #define prt_tuple_new6 | ( | a, | |
| b, | |||
| c, | |||
| d, | |||
| e, | |||
| f | |||
| ) | prt_tuple_new(6,a,b,c,d,e,f) |
Definition at line 39 of file prt_tuple.h.
| int* prt_tuple_cat | ( | int * | first_tuple, |
| ... | |||
| ) |
tuple concatenate Join a variable length, NULL-terminated, list of tuples.
| first_tuple | |
| ... | the other tuples |
Definition at line 64 of file prt_tuple.c.
References prt_assert, and prt_tuple_len().

| int prt_tuple_compare | ( | void * | tuple_a, |
| void * | tuple_b | ||
| ) |
tuple comparison
| tuple_a | |
| tuple_b |
| -1 | tuple_a is less than tuple_b. |
| 0 | tuple_a is equal to tuple_b. |
| 1 | tuple_a is greater than tuple_b. |
Definition at line 135 of file prt_tuple.c.

| int* prt_tuple_copy | ( | int * | in_tuple | ) |
tuple copy constructor
| in_tuple |
Definition at line 109 of file prt_tuple.c.
References prt_assert.
| void prt_tuple_delete | ( | int * | tuple | ) |
tuple destructor
| tuple |
Definition at line 95 of file prt_tuple.c.

| int prt_tuple_equal | ( | void * | tuple_a, |
| void * | tuple_b | ||
| ) |
tuple equality check Check if tuples are identical in length and content.
| tuple_a | |
| tuple_b |
| 0 | Tuples differ. |
| 1 | Tuples are identical. |
Definition at line 161 of file prt_tuple.c.
| unsigned int prt_tuple_hash | ( | void * | tuple | ) |
tuple hash Required by the VSA's tuples hash table. Computes the lenght in characters and calls a string hash function.
| tuple |
Definition at line 188 of file prt_tuple.c.
| int prt_tuple_len | ( | int * | tuple | ) |
tuple length
| tuple |
Definition at line 47 of file prt_tuple.c.

| int* prt_tuple_new | ( | int | len, |
| ... | |||
| ) |
tuple constructor Allocates memory for the tuple plus the termination symbol (INT_MAX).
| len | length of the tuple |
| ... | list of elements of type int |
Definition at line 25 of file prt_tuple.c.
References prt_assert.
| void prt_tuple_print | ( | int * | tuple | ) |
tuple print
| tuple |
Definition at line 172 of file prt_tuple.c.
