SDDS ToolKit Programs and Libraries for C and Python
All Classes Files Functions Variables Macros Pages
SDDSutils.h
Go to the documentation of this file.
1/**
2 * @file SDDSutils.h
3 * @brief Utility functions for SDDS dataset manipulation and string array operations.
4 *
5 * This header file provides declarations for various utility functions used in
6 * handling SDDS datasets, manipulating dynamic string arrays, performing unit
7 * operations on dataset columns, comparing parameter values, and calculating
8 * products of prime numbers.
9 *
10 * This module is essential for data manipulation and analysis tasks involving
11 * SDDS datasets and related operations.
12 *
13 * @copyright
14 * - (c) 2002 The University of Chicago, as Operator of Argonne National Laboratory.
15 * - (c) 2002 The Regents of the University of California, as Operator of Los Alamos National Laboratory.
16 *
17 * @license
18 * This file is distributed under the terms of the Software License Agreement
19 * found in the file LICENSE included with this distribution.
20 *
21 * @author M. Borland, C. Saunders, R. Soliday, H. Shang
22 */
23
24long appendToStringArray(char ***item, long items, char *newItem);
25long expandColumnPairNames(SDDS_DATASET *SDDSin, char ***name,
26 char ***errorName, long names,
27 char **excludeName, long excludeNames,
28 long typeMode, long typeValue);
29
30char *multiplyColumnUnits(SDDS_DATASET *SDDSin, char *name1, char *name2);
31char *divideColumnUnits(SDDS_DATASET *SDDSin, char *name1, char *name2);
32/* basically just composes 1/(units) */
33char *makeFrequencyUnits(SDDS_DATASET *SDDSin, char *indepName);
34
35long compareParameterValues(void *param1, void *param2, long type);
36void moveToStringArray(char ***target, long *targets, char **source,
37 long sources);
38
39int64_t greatestProductOfSmallPrimes1(int64_t rows, int64_t *primeList, int64_t nPrimes);
40int64_t greatestProductOfSmallPrimes(int64_t rows);