rlar
caf3115733
cleanup, emphasise CKTrhs being an array
when accessing slot [0]
8 years ago
rlar
c900cc8824
drop ngspice internal implementation of erfc()
which these days is guaranteed to be provided by <math.h>
note,
our own implementation was incorrect anyway.
it evaluated to
erfc_ngspice(x) = erfc(fabs(x))
9 years ago
dwarning
b8a9ca9df4
correct the fft scaling for real input and complex output vector
9 years ago
rlar
d696aa8781
niconv.c, NIconvTest(), NaN in CKTrhs denotes non-convergence
emit a warning message, but only if ft_ngdebug is set
9 years ago
Francesco Lannutti
43f24d6f22
rewrite cktsens.c in terms of the 'SMP' matrix interface
10 years ago
rlar
fb4f462388
SMPnewMatrix(), add 'size' to the function arguments
9 years ago
rlar
3a9ace82bb
winmain.c, etc, cleanup, rewrite obfuscated symbols
substitute in the whole source code:
"__stream" --> "stream"
"__pos" --> "pos"
"__s" --> "s"
"__n" --> "n"
"__c" --> "c"
"__format" --> "format"
"__ptr" --> "ptr"
"__size" --> "size"
"__path" --> "path"
"__mode" --> "mode"
"__offset" --> "offset"
"__whence" --> "whence"
"__arglist" --> "arglist"
"__buf" --> "buf"
"__fp" --> "fp"
"f_c_l_o_s_e" --> "win_x_fclose"
"f_e_o_f" --> "win_x_feof"
"f_e_r_r_o_r" --> "win_x_ferror"
"f_f_l_u_s_h" --> "win_x_fflush"
"fg_e_t_c" --> "win_x_fgetc"
"f_g_e_t_p_o_s" --> "win_x_fgetpos"
"fg_e_t_s" --> "win_x_fgets"
"fp_r_i_n_t_f" --> "win_x_fprintf"
"fp_u_t_c" --> "win_x_fputc"
"fp_u_t_char" --> "win_x_fputchar"
"fp_u_t_s" --> "win_x_fputs"
"f_r_e_a_d" --> "win_x_fread"
"f_r_e_o_p_e_n" --> "win_x_freopen"
"fs_c_a_n_f" --> "win_x_fscanf"
"f_s_e_e_k" --> "win_x_fseek"
"f_s_e_t_p_o_s" --> "win_x_fsetpos"
"f_t_e_l_l" --> "win_x_ftell"
"f_w_r_i_t_e" --> "win_x_fwrite"
"g_e_t_c" --> "win_x_getc"
"g_e_t_char" --> "win_x_getchar"
"g_e_t_s" --> "win_x_gets"
"p_e_r_r_o_r" --> "win_x_perror"
"p_r_i_n_t_f" --> "win_x_printf"
"p_u_t_c" --> "win_x_putc"
"p_u_t_char" --> "win_x_putchar"
"p_u_t_s" --> "win_x_puts"
"r_e_a_d" --> "win_x_read"
"s_c_a_n_f" --> "win_x_scanf"
"ung_e_t_c" --> "win_x_ungetc"
"vfp_r_i_n_t_f" --> "win_x_vfprintf"
"vfs_c_a_n_f" --> "win_x_vfscanf"
"vp_r_i_n_t_f" --> "win_x_vprintf"
"vs_c_a_n_f" --> "win_x_vscanf"
9 years ago
rlar
ea5ad6b0e7
drop DC_ABS() and FTEcabs()
10 years ago
rlar
15f2c67968
use M_PI
10 years ago
h_vogt
ae80067fef
cmath2.c, new function stddev to calculate the standard deviation of all elements of a vector
10 years ago
h_vogt
594db31ebc
cmath2.c, whitespace cleanup
10 years ago
rlar
b8b6677b85
cmath2.c, drop some excess NG_IGNORE()
10 years ago
h_vogt
2ab3b82696
cmath2.c, cleanup
10 years ago
rlar
2e35329678
cmath2.c, cleanup min/max operations
10 years ago
h_vogt
9f62057973
introduce include file "ngspice/randnumb.h"
10 years ago
rlar
a5817192e1
ni/niiter.c, #5/5, whitespace
10 years ago
rlar
266e6da24b
ni/niiter.c, #4/5, cleanup
10 years ago
rlar
dda415a0e3
ni/niiter.c, #3/5, use `copy()'
10 years ago
rlar
86bb88b546
ni/niiter.c, #2/5, reduce scope
10 years ago
rlar
2978621931
ni/niiter.c, #1/5, cleanup
10 years ago
rlar
5b42d09618
unify, use memcpy for CKTstate copy operations
10 years ago
rlar
d298d5cc2f
use memset() instead of deprecated bzero()
10 years ago
rlar
141ed61ec8
use memcpy() instead of deprecated bcopy()
10 years ago
h_vogt
fca8ab3146
cmath4.c, cx_deriv(), remove a memory leak
10 years ago
rlar
994bec7859
declare free() / realloc() arguments `const void *'
to avoid extra casting when freeing `const' strings
10 years ago
h_vogt
f66e76fb5f
implement option 'xmu' to control trapezoidal integration method
default is 0.5
option xmu=0.49
can be used to add some damping to reduce trap ringing
set xmu=0.49
or
.option xmu=0.49
works as well
10 years ago
rlar
40a0cea0d2
swap some `SWAP' arguments for readability
10 years ago
rlar
bd0bc3038b
use `SWAP' macro
10 years ago
rlar
b36385e333
improve `SWAP' macro
10 years ago
rlar
6342bec8ec
everywhere, drop `MALLOC()' and `REALLOC()'
10 years ago
rlar
9d32a0a5a9
simplify complex assignments
10 years ago
rlar
8243696338
dvec abstraction, #8/11, upgrade `dvec_alloc()'
10 years ago
rlar
8a4a37b5bb
dvec abstraction, #4/11, emphasise `ZERO(dvec)' initialisation
10 years ago
rlar
908c650f72
dvec abstraction, #3/11, use `dvec_alloc()'
10 years ago
rlar
19e427e3a5
cleanup, use NULL instead of 0 in pointer context
11 years ago
rlar
d98c5c90f3
src/maths/cmaths/cmath4.c, bug fix, cx_fft, cx_ifft, cx_derive
incorrect check for VF_COMPLEX in field v_type instead of v_flags
11 years ago
rlar
8e65614d31
spfactor.c, cktnames.c, don't crash when simulating "nothing"
reported by Siddhant Saraf in
> [ngspice:discussion] "out of memory" error : simulating a 2bit AND gate"
This comes in two flavours,
1) an empty circuit
2) a xspice circuit with exclusively xspice event nodes
11 years ago
rlar
c5e0bcde04
cleanup using `hypot()'
11 years ago
rlar
c6a8429258
src/maths/cmaths, implement `nint()' (.control language)
12 years ago
rlar
99eade8ec9
cleanup, rename cx_ln --> cx_log (.control language)
12 years ago
rlar
c926f46986
cleanup, rename rename cx_log --> cx_log10 (.control language)
12 years ago
rlar
4049e8ec1f
rewrite, using IFerrorf()
12 years ago
rlar
ea7372efe7
rewrite, useing IFerrorf()
OUTerror() and IFerror() are no more used,
but kept for compatibility
12 years ago
dwarning
461026f2b9
fix to use garbage collector with --enable-gc
12 years ago
dwarning
a90f916883
fftext.c, move the Bourke FFT code to fftext.c (rename macro)
13 years ago
dwarning
c61e1bc8c6
fftext.c, move the Bourke FFT code to fftext.c (as a backup)
13 years ago
dwarning
2e79c16f55
cmath4.c, drop unused doubledouble()
13 years ago
dwarning
2671aef5cd
cmath4.c, correct array size and relay to specific array order for r2c transformation
13 years ago
dwarning
dc398f1387
cmath4.c, correct scale for ifft
13 years ago
dwarning
51c7f17186
cmath4.c, use FFTW3 for cx_fft() and cx_ifft()
13 years ago