#include "geoslib_old_f.h"#include "Basic/Utilities.hpp"#include "Basic/String.hpp"#include "Space/ASpaceObject.hpp"#include "Space/ASpace.hpp"#include "Space/SpaceSN.hpp"#include "Geometry/GeometryHelper.hpp"#include "Basic/Memory.hpp"#include <string.h>#include <cmath>Classes | |
| struct | Keypair |
| struct | Projec_Environ |
| struct | Dim_Loop |
Functions | |
| void | projec_toggle (int mode) |
| void | projec_query (int *actif) |
| void | projec_print (void) |
| static int | st_match_keypair (const char *keyword, int flag_exact) |
| static Keypair * | st_get_keypair_address (const char *keyword) |
| static void | st_keypair_attributes (Keypair *keypair, int mode, int origin, int, int ncol) |
| static void | st_keypair_allocate (Keypair *keypair, int nrow, int ncol) |
| static void | st_keypair_copy (Keypair *keypair, int type, int start, void *values) |
| void | set_keypair (const char *keyword, int origin, int nrow, int ncol, const double *values) |
| void | app_keypair (const char *keyword, int origin, int nrow, int ncol, double *values) |
| void | set_keypair_int (const char *keyword, int origin, int nrow, int ncol, int *values) |
| void | app_keypair_int (const char *keyword, int origin, int nrow, int ncol, int *values) |
| static void | del_keypone (int indice) |
| void | del_keypair (const char *keyword, int flag_exact) |
| double | get_keypone (const char *keyword, double valdef) |
| int | get_keypair (const char *keyword, int *nrow, int *ncol, double **values) |
| int | get_keypair_int (const char *keyword, int *nrow, int *ncol, int **values) |
| void | print_keypair (int flag_short) |
| double | ut_distance (int ndim, const double *tab1, const double *tab2) |
| void | ut_distance_allocated (int ndim, double **tab1, double **tab2) |
| void | set_last_message (int mode, const char *string) |
| void | print_last_message (void) |
| int * | ut_split_into_two (int ncolor, int flag_half, int verbose, int *nposs) |
| char * | convert (const std::string &s) |
Variables | |
| static Projec_Environ | PROJEC = { 0 } |
| static int | KEYPAIR_NTAB = 0 |
| static Keypair * | KEYPAIR_TABS = NULL |
| static int | DISTANCE_NDIM = 0 |
| static double * | DISTANCE_TAB1 = NULL |
| static double * | DISTANCE_TAB2 = NULL |
| static char ** | LAST_MESSAGE = NULL |
| static int | NB_LAST_MESSAGE = 0 |
| void app_keypair | ( | const char * | keyword, |
| int | origin, | ||
| int | nrow, | ||
| int | ncol, | ||
| double * | values | ||
| ) |
Deposit a keypair (double values) - Append to existing array
| [in] | keyword | Keyword |
| [in] | origin | 1 from C; 2 from R |
| [in] | nrow | Number of rows |
| [in] | ncol | Number of columns |
| [in] | values | Array of values (Dimension: nrow * ncol) |
| void app_keypair_int | ( | const char * | keyword, |
| int | origin, | ||
| int | nrow, | ||
| int | ncol, | ||
| int * | values | ||
| ) |
Deposit a keypair (doubleinteger values) - Append to existing array
| [in] | keyword | Keyword |
| [in] | origin | 1 from C; 2 from R |
| [in] | nrow | Number of rows |
| [in] | ncol | Number of columns |
| [in] | values | Array of values (Dimension: nrow * ncol) |
| char* convert | ( | const std::string & | s | ) |
Convert std::string into a char *
| [in] | s | Input VectorString |
| void del_keypair | ( | const char * | keyword, |
| int | flag_exact | ||
| ) |
Delete a keypair
| [in] | keyword | Keyword to be deleted |
| [in] | flag_exact | 1 if Exact keyword matching is required |
|
static |
Delete a keypair
| [in] | indice | Index of the Keyword to be deleted |
| int get_keypair | ( | const char * | keyword, |
| int * | nrow, | ||
| int * | ncol, | ||
| double ** | values | ||
| ) |
Inquiry the keypair
| [in] | keyword | Keyword |
| [out] | nrow | Number of rows |
| [out] | ncol | Number of columns |
| [out] | values | Array of values attached to the keyword |
| int get_keypair_int | ( | const char * | keyword, |
| int * | nrow, | ||
| int * | ncol, | ||
| int ** | values | ||
| ) |
Inquiry the keypair (integer values)
| [in] | keyword | Keyword |
| [out] | nrow | Number of rows |
| [out] | ncol | Number of columns |
| [out] | values | Array of values attached to the keyword |
| double get_keypone | ( | const char * | keyword, |
| double | valdef | ||
| ) |
Inquiry the keypair (for a single value)
| [in] | keyword | Keyword |
| [in] | valdef | Factory setting value |
| void print_keypair | ( | int | flag_short | ) |
Print the list of keypairs
| [in] | flag_short | 1 for a short output |
| void print_last_message | ( | void | ) |
Print the array of last messages
| void projec_print | ( | void | ) |
Print the characteristics of the projection
| void projec_query | ( | int * | actif | ) |
Returns the projection characteristics
| [out] | actif | activity flag |
| void projec_toggle | ( | int | mode | ) |
Toggle the status of the Projection flag
| [in] | mode | Toggle of the projection flag
|
| void set_keypair | ( | const char * | keyword, |
| int | origin, | ||
| int | nrow, | ||
| int | ncol, | ||
| const double * | values | ||
| ) |
Deposit a keypair (double values)
| [in] | keyword | Keyword |
| [in] | origin | 1 from C; 2 from R |
| [in] | nrow | Number of rows |
| [in] | ncol | Number of columns |
| [in] | values | Array of values (Dimension: nrow * ncol) |
| void set_keypair_int | ( | const char * | keyword, |
| int | origin, | ||
| int | nrow, | ||
| int | ncol, | ||
| int * | values | ||
| ) |
Deposit a keypair (integer values)
| [in] | keyword | Keyword |
| [in] | origin | 1 from C; 2 from R |
| [in] | nrow | Number of rows |
| [in] | ncol | Number of columns |
| [in] | values | Array of values (Dimension: nrow * ncol) |
| void set_last_message | ( | int | mode, |
| const char * | string | ||
| ) |
Deposit a last message
| [in] | mode | Type of operation 0 to empty the array of messages 1 to add the string to the array of messages -1 to concatenate the string to the last message |
| [in] | string | Current string |
|
static |
Internal function to find the keypair stack address or to create a new one if not already existing
| [in] | keyword | Keyword |
|
static |
Internal function to allocate the storage of a keypair
| [in] | keypair | Keypair structure |
| [in] | nrow | Number of rows |
| [in] | ncol | Number of columns |
|
static |
Internal function to copy or check the attributes (append)
| [in] | keypair | Keypair structure |
| [in] | mode | 0 for creation and 1 for appending |
| [in] | origin | 1 from C; 2 from R |
| [in] | ncol | Number of columns |
|
static |
|
static |
Look for an already registered keypair
| [in] | keyword | Keyword |
| [in] | flag_exact | 1 if Exact keyword matching is required |
| double ut_distance | ( | int | ndim, |
| const double * | tab1, | ||
| const double * | tab2 | ||
| ) |
| void ut_distance_allocated | ( | int | ndim, |
| double ** | tab1, | ||
| double ** | tab2 | ||
| ) |
Allocate the necessary arrays for calculating distances using already allocated arrays
| [in] | ndim | Space dimension |
| [out] | tab1 | Array for coordinates of first sample |
| [out] | tab2 | Array for coordinates of second sample |
| int* ut_split_into_two | ( | int | ncolor, |
| int | flag_half, | ||
| int | verbose, | ||
| int * | nposs | ||
| ) |
Return all the ways to split ncolor into two non-empty subsets
| [in] | ncolor | Number of colors |
| [in] | flag_half | 1 if only half of possibilities must be envisaged |
| [in] | verbose | 1 for a verbose option |
| [out] | nposs | Number of possibilities |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |