|
PULSAR
0.1
Parallel Unified Linear Algebra with Systolic Arrays
|
PRT tuple implementation. More...
#include "prt_tuple.h"
Go to the source code of this file.
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 implementation.
PULSAR Runtime /pulsar/ Copyright (C) 2012-2013 University of Tennessee.
Definition in file prt_tuple.c.
| 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.
References prt_tuple_compare().


| 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.
