Clan
0.8.0
|
#include <clan/symbol.h>
Go to the source code of this file.
Functions | |
struct osl_vector * | clan_vector_term (clan_symbol_p, int, char *, int) |
struct osl_vector* clan_vector_term | ( | clan_symbol_p | symbol, |
int | coefficient, | ||
char * | identifier, | ||
int | precision | ||
) | [read] |
clan_vector_term function: This function generates the vector representation of a term. It allocates a vector with maximal size and puts the term value at the right place depending if the term is a constant, an iterator coefficient or a parameter coefficient (see the structure of an OpenScop row if unsure!).
[in] | symbol | The first node of the list of symbols. |
[in] | coefficient | The constant or coefficient. |
[in] | identifier | Identifier of iterator or parameter (NULL for constant). |
[in] | precision | Precision of the vector terms. |
Definition at line 67 of file vector.c.
References CLAN_MAX_DEPTH, CLAN_MAX_LOCAL_DIMS, CLAN_MAX_PARAMETERS, clan_symbol_get_rank(), clan_symbol_get_type(), and CLAN_TYPE_ITERATOR.
Referenced by yyparse().