#include <stdio.h>
#include <scoplib/scop.h>
#include <scoplib/vector.h>
#include <clan/symbol.h>
Go to the source code of this file.
Defines | |
#define | CLAN_MAX_DEPTH 50 |
#define | CLAN_MAX_PARAMETERS 50 |
#define | CLAN_MAX_CONSTRAINTS 50 |
Functions | |
scoplib_vector_p | clan_vector_term (clan_symbol_p, int, char *) |
#define CLAN_MAX_CONSTRAINTS 50 |
Referenced by clan_parser_initialize_state().
#define CLAN_MAX_DEPTH 50 |
Referenced by clan_matrix_compact(), clan_matrix_scheduling(), clan_parser_initialize_state(), clan_vector_term(), and yyparse().
#define CLAN_MAX_PARAMETERS 50 |
Referenced by clan_matrix_scheduling(), clan_parser_initialize_state(), clan_vector_term(), and yyparse().
scoplib_vector_p clan_vector_term | ( | clan_symbol_p | symbol, | |
int | coefficient, | |||
char * | identifier | |||
) |
clan_vector_term function: This function generates the vector representation of a term. It allocates a vector with maximal size and put 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 a PolyLib row if unsure!).
symbol | The first node of the list of symbols. | |
coefficient | The constant or coefficient. | |
identifier | Identifier of iterator or parameter (NULL for constant). |
References CLAN_MAX_DEPTH, CLAN_MAX_PARAMETERS, clan_symbol_get_rank(), clan_symbol_get_type(), and clan_symbol::rank.
Referenced by yyparse().