Holger Vogt
3a6a445241
rcheck -> rcheckn in cmath1.c
delete alloced memory in case of check failure
6 years ago
Holger Vogt
ba81e21197
rcheckn: rcheck plus freeing allocated memory
6 years ago
Holger Vogt
bd7b35541d
Lengthy op calculations make the Win GUI unresposive.
A macro adds a short travel to the GUI fro0m within
the matrix ordering and factoring. Time overhead
during op is less than 0.5%.
8 years ago
Jim Monte
de4788cfe5
Added conjugate function conj().
6 years ago
Jim Monte
d3343b1791
Removed redundant macro
6 years ago
Kevin Zheng
6f20ec9929
patch to simplify compile for FreeBSD
7 years ago
Jim Monte
ea81da2b01
[PATCH #55-1] Fixed some compiler warnings added by Visual Studio 2019
7 years ago
Holger Vogt
eb33388707
Update to patch #33 , stdlib.h required on Linux for size_t
7 years ago
Jim Monte
3dea14e223
Fixed Visual Studio C4334 compiler warnings related to
32-bit vs 64-bit shifts
7 years ago
dwarning
9289f0f773
proper initialization of b magnitude coefficient in a special case
7 years ago
dwarning
76c43ab512
using the native tan and tanh math functions for real vector calculation
8 years ago
Holger Vogt
b0e7962169
don't generate error message during transient analysis,
it will not be used
8 years ago
Holger Vogt
f2cfb9b359
add fourth parameter to cp_getvar()
8 years ago
Holger Vogt
2786fcb86e
New .option seed=[val|random]
8 years ago
Holger Vogt
7ca61b3c98
New command 'setseed' with function com_sseed
to set the random number generator
8 years ago
Holger Vogt
09c876550f
prevent string overflow by adding the string length
to the cp_getvar parameters. Used only with CP_STRING
8 years ago
Holger Vogt
a98d01e5f8
Use only internal memory functions, replace
free->tfree, malloc->tmalloc, realloc->trealloc
8 years ago
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