/zscilib-3.4.0/ |
D | CMakeLists.txt | 8 src/colorimetry/colorimetry.c 9 src/colorimetry/conv.c 10 src/colorimetry/illuminants.c 11 src/colorimetry/lumeff.c 12 src/colorimetry/norm.c 13 src/colorimetry/observers.c 14 src/colorimetry/rgbccms.c 15 src/colorimetry/shell.c 16 src/orientation/ahrs.c 17 src/orientation/compass.c [all …]
|
D | TODO.md | 7 ### matrices.c: Missing boundary checks 13 ### matrices.c: SVD and PINV 20 ### matrix_tests.c: Incomplete tests 32 ### misc.c, relativity.c, waves.c
|
/zscilib-3.4.0/samples/standalone/svd_pinv/ |
D | Makefile | 20 $(ODIR)/%.o: %.c 23 @$(CC) -c -o $@ $< $(CFLAGS) 27 $(ODIR)/matrices.o: $(BASEDIR)/src/matrices.c 30 @$(CC) -c -o $@ $< $(CFLAGS) 32 $(ODIR)/vectors.o: $(BASEDIR)/src/vectors.c 35 @$(CC) -c -o $@ $< $(CFLAGS) 37 $(ODIR)/zsl.o: $(BASEDIR)/src/zsl.c 40 @$(CC) -c -o $@ $< $(CFLAGS) 42 $(ODIR)/atomic.o: $(BASEDIR)/src/physics/atomic.c 45 @$(CC) -c -o $@ $< $(CFLAGS) [all …]
|
/zscilib-3.4.0/src/physics/ |
D | eleccomp.c | 2 * Copyright (c) 2019 Kevin Townsend (KTOWN) 13 zsl_phy_ecmp_capac_cpv(zsl_real_t q, zsl_real_t v, zsl_real_t *c) in zsl_phy_ecmp_capac_cpv() argument 16 *c = NAN; in zsl_phy_ecmp_capac_cpv() 20 *c = q / v; in zsl_phy_ecmp_capac_cpv() 26 zsl_phy_ecmp_capac_ad(zsl_real_t a, zsl_real_t d, zsl_real_t *c) in zsl_phy_ecmp_capac_ad() argument 29 *c = NAN; in zsl_phy_ecmp_capac_ad() 33 *c = ZSL_PERM_FREE_SPACE * (a / d); in zsl_phy_ecmp_capac_ad() 39 zsl_phy_ecmp_ener_capac(zsl_real_t c, zsl_real_t v, zsl_real_t *u) in zsl_phy_ecmp_ener_capac() argument 41 *u = 0.5 * c * v * v; in zsl_phy_ecmp_ener_capac() 77 zsl_phy_ecmp_rc_charg_i(zsl_real_t r, zsl_real_t c, zsl_real_t t, zsl_real_t i0, in zsl_phy_ecmp_rc_charg_i() argument [all …]
|
D | electricity.c | 2 * Copyright (c) 2019 Kevin Townsend (KTOWN) 3 * Copyright (c) 2021 Marti Riba Pons 66 zsl_phy_elcty_cap_series(struct zsl_vec *v, zsl_real_t *c) in zsl_phy_elcty_cap_series() argument 70 *c = NAN; in zsl_phy_elcty_cap_series() 81 *c = 1. / c_temp; in zsl_phy_elcty_cap_series() 87 zsl_phy_elcty_cap_parallel(struct zsl_vec *v, zsl_real_t *c) in zsl_phy_elcty_cap_parallel() argument 91 *c = NAN; in zsl_phy_elcty_cap_parallel() 96 *c = 0.0; in zsl_phy_elcty_cap_parallel() 98 *c += v->data[j]; in zsl_phy_elcty_cap_parallel()
|
/zscilib-3.4.0/include/zsl/physics/ |
D | eleccomp.h | 2 * Copyright (c) 2019-2020 Kevin Townsend (KTOWN) 28 extern "C" { 36 * @param c Pointer to the output capacitance in farads. Will be set to 41 int zsl_phy_ecmp_capac_cpv(zsl_real_t q, zsl_real_t v, zsl_real_t *c); 46 * i.e.: C = E (A / D) where E = 8.85 x 10^-12 farad per meter (F/m). 54 * @param c Pointer to the output capacitance in farads. Will be set to 59 int zsl_phy_ecmp_capac_ad(zsl_real_t a, zsl_real_t d, zsl_real_t *c); 62 * @brief Calculates the energy in joules of a capacitor of capacitance 'c' and 65 * @param c Capacitance in farads. 71 int zsl_phy_ecmp_ener_capac(zsl_real_t c, zsl_real_t v, zsl_real_t *u); [all …]
|
D | electricity.h | 2 * Copyright (c) 2019-2020 Kevin Townsend (KTOWN) 3 * Copyright (c) 2021 Marti Riba Pons 30 extern "C" { 77 * @param c Pointer to the equivalent capacitance in farads. Will be set to 82 int zsl_phy_elcty_cap_series(struct zsl_vec *v, zsl_real_t *c); 90 * @param c Pointer to the equivalent capacitance in farads. Will be set to 95 int zsl_phy_elcty_cap_parallel(struct zsl_vec *v, zsl_real_t *c);
|
/zscilib-3.4.0/tests/src/ |
D | complex_tests.c | 2 * Copyright (c) 2019 Kevin Townsend (KTOWN) 14 * https://en.wikichip.org/wiki/c/complex.h 27 double complex c = 0.0; in ZTEST() local 31 float complex c = 0.0; in ZTEST() 34 c = a + b; in ZTEST() 35 zassert_true(val_is_equal(creal(c), creal(a) + creal(b), 1E-5), NULL); in ZTEST() 36 zassert_true(val_is_equal(cimag(c), cimag(a) + cimag(b), 1E-5), NULL); in ZTEST()
|
D | floatcheck.c | 2 * Copyright (c) 2019-2020 Kevin Townsend (KTOWN) 13 zsl_real_t c; in val_is_equal() local 15 c = a - b; in val_is_equal() 17 if (c < epsilon && -c < epsilon) { in val_is_equal()
|
D | phy_ecmp_tests.c | 2 * Copyright (c) 2019 Kevin Townsend (KTOWN) 17 zsl_real_t c; in ZTEST() local 19 rc = zsl_phy_ecmp_capac_cpv(100.0, 10.0, &c); in ZTEST() 21 zassert_true(val_is_equal(c, 10.0, 1E-6), NULL); in ZTEST() 23 rc = zsl_phy_ecmp_capac_cpv(100.0, 0.0, &c); in ZTEST() 26 zassert_true(c != c, NULL); in ZTEST() 32 zsl_real_t c; in ZTEST() local 35 rc = zsl_phy_ecmp_capac_ad(150E-4, 0.6E-2, &c); in ZTEST() 37 zassert_true(val_is_equal(c, 2.2135E-11, 1E-13), NULL); in ZTEST() 39 rc = zsl_phy_ecmp_capac_ad(150E-4, 0.0, &c); in ZTEST() [all …]
|
D | phy_elcty_tests.c | 2 * Copyright (c) 2019 Kevin Townsend (KTOWN) 3 * Copyright (c) 2021 Marti Riba Pons 90 zsl_real_t c; in ZTEST() local 104 rc = zsl_phy_elcty_cap_series(&va, &c); in ZTEST() 106 zassert_true(val_is_equal(c, 0.25986078886, 1E-6), NULL); in ZTEST() 109 rc = zsl_phy_elcty_cap_series(&vb, &c); in ZTEST() 112 zassert_true(c != c, NULL); in ZTEST() 118 zsl_real_t c; in ZTEST() local 132 rc = zsl_phy_elcty_cap_parallel(&va, &c); in ZTEST() 134 zassert_true(val_is_equal(c, 12.2, 1E-6), NULL); in ZTEST() [all …]
|
D | probability_tests.c | 2 * Copyright (c) 2019 Kevin Townsend (KTOWN) 3 * Copyright (c) 2021 Marti Riba Pons 197 int n = 7, k, c; in ZTEST() local 200 rc = zsl_prob_binomial_coef(&n, &k, &c); in ZTEST() 202 zassert_true(val_is_equal(c, 7, 1E-6), NULL); in ZTEST() 205 rc = zsl_prob_binomial_coef(&n, &k, &c); in ZTEST() 207 zassert_true(val_is_equal(c, 35, 1E-6), NULL); in ZTEST() 210 rc = zsl_prob_binomial_coef(&n, &k, &c); in ZTEST() 212 zassert_true(val_is_equal(c, 1, 1E-6), NULL); in ZTEST() 215 rc = zsl_prob_binomial_coef(&n, &k, &c); in ZTEST() [all …]
|
D | data.h | 2 * Copyright (c) 2019-2020 Kevin Townsend (KTOWN) 11 extern "C" {
|
/zscilib-3.4.0/samples/standalone/vector/ |
D | Makefile | 18 $(ODIR)/%.o: %.c 21 @$(CC) -c -o $@ $< $(CFLAGS) 25 $(ODIR)/matrices.o: $(BASEDIR)/src/matrices.c 28 @$(CC) -c -o $@ $< $(CFLAGS) 30 $(ODIR)/vectors.o: $(BASEDIR)/src/vectors.c 33 @$(CC) -c -o $@ $< $(CFLAGS) 35 $(ODIR)/zsl.o: $(BASEDIR)/src/zsl.c 38 @$(CC) -c -o $@ $< $(CFLAGS)
|
/zscilib-3.4.0/doc/ |
D | adding_funcs.md | 27 ```c 50 ```c 52 * Copyright (c) 2019 Author Name Here 76 extern "C" { 96 function appears in the source module (the .c file) in the same order it 101 ```c 120 must be followed for the .c file, replacing `zsl/groupname.h` with a reference 123 ```c 125 * Copyright (c) 2019 Author Name Here 146 To add a new unit test, open `tests/src/main.c`, and add a function prototype [all …]
|
D | arm_asm_gnu_inline.md | 15 When connecting inline assembly and C using GNU, the assembly code generally 38 allows the C and inline assembly code to share **output** operands. 43 followed by the **C expression** enclosed in parentheses `()`. 57 - Associates it with the `result` C expression. 63 allows the C and inline assembly code to share **input** operands. 76 - Associates it with the `x` C expression. 177 Details the format used for inline assembler instructions with C expression
|
D | arm_asm_adding.md | 4 of existing C functions in zscilib, the steps described below should be 8 with other non-ARM architectures, and that the library safely falls back to C
|
/zscilib-3.4.0/tests/ |
D | testcase.yaml | 6 # C functions in double precision 7 zsl.core.c.double: 12 # C functions in single precision 13 zsl.core.c.single:
|
D | CMakeLists.txt | 1 # Copyright (c) 2022 Linaro 10 FILE(GLOB app_sources src/*.c)
|
/zscilib-3.4.0/samples/matrix/pinv/ |
D | README.rst | 61 # Set a breakpoint at main in main.c 62 (gdb) break main.c:main 63 Breakpoint 1 at 0xFFFF: ... main.c, line xx. 70 (gdb) c 72 Breakpoint 1, main () at .../main.c:69 81 continue (c)
|
/zscilib-3.4.0/src/colorimetry/ |
D | shell.c | 2 * Copyright (c) 2019-2021 Kevin Townsend (KTOWN) 57 shell_print(shell, "Gamut Warning: %c%c%c", in zsl_clr_shell_cmd_ct2rgb() 101 shell_print(shell, "Gamut Warning: %c%c%c", in zsl_clr_shell_cmd_ct2rgbf()
|
/zscilib-3.4.0/src/ |
D | vectors.c | 2 * Copyright (c) 2019 Kevin Townsend (KTOWN) 273 int zsl_vec_cross(struct zsl_vec *v, struct zsl_vec *w, struct zsl_vec *c) in zsl_vec_cross() argument 277 if ((v->sz != 3) || (w->sz != 3) || (c->sz != 3)) { in zsl_vec_cross() 286 * C = |Cy|, V = |Vy|, W = |Wy| in zsl_vec_cross() 296 c->data[0] = v->data[1] * w->data[2] - v->data[2] * w->data[1]; in zsl_vec_cross() 297 c->data[1] = v->data[2] * w->data[0] - v->data[0] * w->data[2]; in zsl_vec_cross() 298 c->data[2] = v->data[0] * w->data[1] - v->data[1] * w->data[0]; in zsl_vec_cross() 389 zsl_real_t c; in zsl_vec_is_equal() local 396 c = v->data[i] - w->data[i]; in zsl_vec_is_equal() 397 if (c >= eps || -c >= eps) { in zsl_vec_is_equal() [all …]
|
D | probability.c | 2 * Copyright (c) 2021 Marti Riba Pons 168 int zsl_prob_binomial_coef(int *n, int *k, int *c) in zsl_prob_binomial_coef() argument 178 *c = 0; in zsl_prob_binomial_coef() 183 *c = zsl_prob_factorial(n) / in zsl_prob_binomial_coef() 202 int c; in zsl_prob_binomial_pdf() local 203 zsl_prob_binomial_coef(n, x, &c); in zsl_prob_binomial_pdf() 205 return c * ZSL_POW(*p, *x) * ZSL_POW((1. - *p), (*n - *x)); in zsl_prob_binomial_pdf() 261 int c; in zsl_prob_binomial_cdf() local 264 zsl_prob_binomial_coef(n, &i, &c); in zsl_prob_binomial_cdf() 265 y += c * ZSL_POW(*p, i) * ZSL_POW((1. - *p), (*n - i)); in zsl_prob_binomial_cdf()
|
/zscilib-3.4.0/samples/orientation/apitest/ |
D | CMakeLists.txt | 5 target_sources(app PRIVATE src/main.c) 6 target_sources(app PRIVATE src/data.c)
|
/zscilib-3.4.0/samples/orientation/apitest/src/ |
D | data.h | 2 * Copyright (c) 2021 Kevin Townsend 11 extern "C" {
|