Skip to content

Commit

Permalink
adapted julia and matlab files for der_laplacian_kernel
Browse files Browse the repository at this point in the history
  • Loading branch information
theresa committed Apr 10, 2024
1 parent e202f0c commit 583def2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions julia/fastsum/libfastsumjulia.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@ int jfastsum_init( fastsum_plan* p, int d, char* s, double* c, unsigned int f, i
kernel = log_sin;
else if ( strcmp(s, "laplacian_rbf") == 0 )
kernel = laplacian_rbf;
else if ( strcmp(s, "der_laplacian_rbf") == 0 )
kernel = der_laplacian_rbf;
else if ( strcmp(s, "xx_gaussian") == 0 )
kernel = xx_gaussian;
else if ( strcmp(s, "absx") == 0 )
Expand Down
2 changes: 2 additions & 0 deletions matlab/fastsum/fastsummex.c
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,8 @@ static kernel get_kernel(const mxArray *p)
ker = log_sin;
else if (strcmp(s, "laplacian_rbf") == 0)
ker = laplacian_rbf;
else if (strcmp(s, "der_laplacian_rbf") == 0)
ker = der_laplacian_rbf;
else if (strcmp(s, "xx_gaussian") == 0)
ker = xx_gaussian;
else if (strcmp(s, "absx") == 0)
Expand Down
1 change: 1 addition & 0 deletions matlab/fastsum/simple_test.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
% 'one_over_cube' K(x) = 1/x^3
% 'log_sin' K(x) = LOG(|SIN(cx)|)
% 'laplacian_rbf' K(x) = EXP(-|x|/c)
% 'der_laplacian_rbf' K(x) = |x|/c EXP(-|x|/c)
% 'xx_gaussian' K(x) = x^2/c^2 EXP(-x^2/c^2)
% 'absx' K(x) = |x|

Expand Down
1 change: 1 addition & 0 deletions matlab/fastsum/test_fastsum.m
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
% 'one_over_cube' K(x) = 1/x^3
% 'log_sin' K(x) = LOG(|SIN(cx)|)
% 'laplacian_rbf' K(x) = EXP(-|x|/c)
% 'der_laplacian_rbf' K(x) = |x|/c EXP(-|x|/c)
% 'xx_gaussian' K(x) = x^2/c^2 EXP(-x^2/c^2)
% 'absx' K(x) = |x|

Expand Down

0 comments on commit 583def2

Please sign in to comment.