|
Krita Source Code Documentation
|
#include "nubspline_create.h"#include <math.h>#include <assert.h>#include <stdlib.h>#include <stdio.h>Go to the source code of this file.
Macros | |
| #define | __USE_XOPEN2K |
| #define | _XOPEN_SOURCE 600 |
| #define __USE_XOPEN2K |
Definition at line 28 of file nubspline_create.cpp.
| #define _XOPEN_SOURCE 600 |
Definition at line 25 of file nubspline_create.cpp.
| NUBspline_1d_c * create_NUBspline_1d_c | ( | NUgrid * | x_grid, |
| BCtype_c | xBC, | ||
| complex_float * | data ) |
Definition at line 763 of file nubspline_create.cpp.
References NUBspline_1d_c::coefs, create_NUBasis(), find_NUBcoefs_1d_c(), BCtype_c::lCode, NU1D, NUgrid::num_points, PERIODIC, SINGLE_COMPLEX, NUBspline_1d_c::sp_code, NUBspline_1d_c::t_code, and NUBspline_1d_c::x_basis.
| NUBspline_1d_d * create_NUBspline_1d_d | ( | NUgrid * | x_grid, |
| BCtype_d | xBC, | ||
| double * | data ) |
Definition at line 591 of file nubspline_create.cpp.
References NUBspline_1d_d::coefs, create_NUBasis(), DOUBLE_REAL, find_NUBcoefs_1d_d(), BCtype_d::lCode, NU1D, NUgrid::num_points, PERIODIC, NUBspline_1d_d::sp_code, NUBspline_1d_d::t_code, and NUBspline_1d_d::x_basis.
| NUBspline_1d_s * create_NUBspline_1d_s | ( | NUgrid * | x_grid, |
| BCtype_s | xBC, | ||
| float * | data ) |
Definition at line 247 of file nubspline_create.cpp.
References NUBspline_1d_s::coefs, create_NUBasis(), find_NUBcoefs_1d_s(), BCtype_s::lCode, NU1D, NUgrid::num_points, PERIODIC, SINGLE_REAL, NUBspline_1d_s::sp_code, NUBspline_1d_s::t_code, and NUBspline_1d_s::x_basis.
| NUBspline_1d_z * create_NUBspline_1d_z | ( | NUgrid * | x_grid, |
| BCtype_z | xBC, | ||
| complex_double * | data ) |
Definition at line 932 of file nubspline_create.cpp.
References NUBspline_1d_z::coefs, create_NUBasis(), DOUBLE_COMPLEX, find_NUBcoefs_1d_z(), BCtype_z::lCode, NU1D, NUgrid::num_points, PERIODIC, NUBspline_1d_z::sp_code, NUBspline_1d_z::t_code, and NUBspline_1d_z::x_basis.
| NUBspline_2d_c * create_NUBspline_2d_c | ( | NUgrid * | x_grid, |
| NUgrid * | y_grid, | ||
| BCtype_c | xBC, | ||
| BCtype_c | yBC, | ||
| complex_float * | data ) |
Definition at line 788 of file nubspline_create.cpp.
References NUBspline_2d_c::coefs, create_NUBasis(), find_NUBcoefs_1d_c(), BCtype_c::lCode, NU2D, NUgrid::num_points, PERIODIC, posix_memalign(), SINGLE_COMPLEX, NUBspline_2d_c::sp_code, NUBspline_2d_c::t_code, NUBspline_2d_c::x_basis, NUBspline_2d_c::x_stride, and NUBspline_2d_c::y_basis.
| NUBspline_2d_d * create_NUBspline_2d_d | ( | NUgrid * | x_grid, |
| NUgrid * | y_grid, | ||
| BCtype_d | xBC, | ||
| BCtype_d | yBC, | ||
| double * | data ) |
Definition at line 616 of file nubspline_create.cpp.
References NUBspline_2d_d::coefs, create_NUBasis(), DOUBLE_REAL, find_NUBcoefs_1d_d(), BCtype_d::lCode, NU2D, NUgrid::num_points, PERIODIC, posix_memalign(), NUBspline_2d_d::sp_code, NUBspline_2d_d::t_code, NUBspline_2d_d::x_basis, NUBspline_2d_d::x_stride, and NUBspline_2d_d::y_basis.
| NUBspline_2d_s * create_NUBspline_2d_s | ( | NUgrid * | x_grid, |
| NUgrid * | y_grid, | ||
| BCtype_s | xBC, | ||
| BCtype_s | yBC, | ||
| float * | data ) |
Definition at line 272 of file nubspline_create.cpp.
References NUBspline_2d_s::coefs, create_NUBasis(), find_NUBcoefs_1d_s(), BCtype_s::lCode, NU2D, NUgrid::num_points, PERIODIC, posix_memalign(), SINGLE_REAL, NUBspline_2d_s::sp_code, NUBspline_2d_s::t_code, NUBspline_2d_s::x_basis, NUBspline_2d_s::x_stride, and NUBspline_2d_s::y_basis.
| NUBspline_2d_z * create_NUBspline_2d_z | ( | NUgrid * | x_grid, |
| NUgrid * | y_grid, | ||
| BCtype_z | xBC, | ||
| BCtype_z | yBC, | ||
| complex_double * | data ) |
Definition at line 957 of file nubspline_create.cpp.
References NUBspline_2d_z::coefs, create_NUBasis(), DOUBLE_COMPLEX, find_NUBcoefs_1d_z(), BCtype_z::lCode, NU2D, NUgrid::num_points, PERIODIC, posix_memalign(), NUBspline_2d_z::sp_code, NUBspline_2d_z::t_code, NUBspline_2d_z::x_basis, NUBspline_2d_z::x_stride, and NUBspline_2d_z::y_basis.
| NUBspline_3d_c * create_NUBspline_3d_c | ( | NUgrid * | x_grid, |
| NUgrid * | y_grid, | ||
| NUgrid * | z_grid, | ||
| BCtype_c | xBC, | ||
| BCtype_c | yBC, | ||
| BCtype_c | zBC, | ||
| complex_float * | data ) |
Definition at line 839 of file nubspline_create.cpp.
References NUBspline_3d_c::coefs, create_NUBasis(), find_NUBcoefs_1d_c(), BCtype_c::lCode, NU3D, NUgrid::num_points, PERIODIC, posix_memalign(), SINGLE_COMPLEX, NUBspline_3d_c::sp_code, NUBspline_3d_c::t_code, NUBspline_3d_c::x_basis, NUBspline_3d_c::x_stride, NUBspline_3d_c::y_basis, NUBspline_3d_c::y_stride, and NUBspline_3d_c::z_basis.
| NUBspline_3d_d * create_NUBspline_3d_d | ( | NUgrid * | x_grid, |
| NUgrid * | y_grid, | ||
| NUgrid * | z_grid, | ||
| BCtype_d | xBC, | ||
| BCtype_d | yBC, | ||
| BCtype_d | zBC, | ||
| double * | data ) |
Definition at line 668 of file nubspline_create.cpp.
References NUBspline_3d_d::coefs, create_NUBasis(), DOUBLE_REAL, find_NUBcoefs_1d_d(), BCtype_d::lCode, NU3D, NUgrid::num_points, PERIODIC, posix_memalign(), NUBspline_3d_d::sp_code, NUBspline_3d_d::t_code, NUBspline_3d_d::x_basis, NUBspline_3d_d::x_stride, NUBspline_3d_d::y_basis, NUBspline_3d_d::y_stride, and NUBspline_3d_d::z_basis.
| NUBspline_3d_s * create_NUBspline_3d_s | ( | NUgrid * | x_grid, |
| NUgrid * | y_grid, | ||
| NUgrid * | z_grid, | ||
| BCtype_s | xBC, | ||
| BCtype_s | yBC, | ||
| BCtype_s | zBC, | ||
| float * | data ) |
Definition at line 324 of file nubspline_create.cpp.
References NUBspline_3d_s::coefs, create_NUBasis(), find_NUBcoefs_1d_s(), BCtype_s::lCode, NU3D, NUgrid::num_points, PERIODIC, posix_memalign(), SINGLE_REAL, NUBspline_3d_s::sp_code, NUBspline_3d_s::t_code, NUBspline_3d_s::x_basis, NUBspline_3d_s::x_stride, NUBspline_3d_s::y_basis, NUBspline_3d_s::y_stride, and NUBspline_3d_s::z_basis.
| NUBspline_3d_z * create_NUBspline_3d_z | ( | NUgrid * | x_grid, |
| NUgrid * | y_grid, | ||
| NUgrid * | z_grid, | ||
| BCtype_z | xBC, | ||
| BCtype_z | yBC, | ||
| BCtype_z | zBC, | ||
| complex_double * | data ) |
Definition at line 1008 of file nubspline_create.cpp.
References NUBspline_3d_z::coefs, create_NUBasis(), DOUBLE_COMPLEX, find_NUBcoefs_1d_z(), BCtype_z::lCode, NU3D, NUgrid::num_points, PERIODIC, posix_memalign(), NUBspline_3d_z::sp_code, NUBspline_3d_z::t_code, NUBspline_3d_z::x_basis, NUBspline_3d_z::x_grid, NUBspline_3d_z::x_stride, NUBspline_3d_z::y_basis, NUBspline_3d_z::y_grid, NUBspline_3d_z::y_stride, NUBspline_3d_z::z_basis, and NUBspline_3d_z::z_grid.
Definition at line 1087 of file nubspline_create.cpp.
References Bspline::coefs, destroy_NUBasis(), MULTI_NU1D, MULTI_NU2D, MULTI_NU3D, MULTI_U1D, MULTI_U2D, MULTI_U3D, NU1D, NU2D, NU3D, Bspline::sp_code, U1D, and U2D.
| void find_NUBcoefs_1d_c | ( | NUBasis *restrict | basis, |
| BCtype_c | bc, | ||
| complex_float * | data, | ||
| int | dstride, | ||
| complex_float * | coefs, | ||
| int | cstride ) |
Definition at line 742 of file nubspline_create.cpp.
References find_NUBcoefs_1d_s(), BCtype_s::lCode, BCtype_c::lCode, BCtype_s::lVal, BCtype_c::lVal_i, BCtype_c::lVal_r, BCtype_s::rCode, BCtype_c::rCode, BCtype_s::rVal, BCtype_c::rVal_i, and BCtype_c::rVal_r.
| void find_NUBcoefs_1d_d | ( | NUBasis *restrict | basis, |
| BCtype_d | bc, | ||
| double * | data, | ||
| int | dstride, | ||
| double * | coefs, | ||
| int | cstride ) |
Definition at line 543 of file nubspline_create.cpp.
References DERIV1, DERIV2, FLAT, get_NUBasis_d2funcs_di(), get_NUBasis_dfuncs_di(), BCtype_d::lCode, BCtype_d::lVal, NATURAL, PERIODIC, BCtype_d::rCode, BCtype_d::rVal, solve_NUB_deriv_interp_1d_d(), and solve_NUB_periodic_interp_1d_d().
| void find_NUBcoefs_1d_s | ( | NUBasis *restrict | basis, |
| BCtype_s | bc, | ||
| float * | data, | ||
| int | dstride, | ||
| float * | coefs, | ||
| int | cstride ) |
Definition at line 201 of file nubspline_create.cpp.
References DERIV1, DERIV2, FLAT, get_NUBasis_d2funcs_si(), get_NUBasis_dfuncs_si(), BCtype_s::lCode, BCtype_s::lVal, NATURAL, PERIODIC, BCtype_s::rCode, BCtype_s::rVal, solve_NUB_deriv_interp_1d_s(), and solve_NUB_periodic_interp_1d_s().
| void find_NUBcoefs_1d_z | ( | NUBasis *restrict | basis, |
| BCtype_z | bc, | ||
| complex_double * | data, | ||
| int | dstride, | ||
| complex_double * | coefs, | ||
| int | cstride ) |
Definition at line 911 of file nubspline_create.cpp.
References find_NUBcoefs_1d_d(), BCtype_d::lCode, BCtype_z::lCode, BCtype_d::lVal, BCtype_z::lVal_i, BCtype_z::lVal_r, BCtype_d::rCode, BCtype_z::rCode, BCtype_d::rVal, BCtype_z::rVal_i, and BCtype_z::rVal_r.
| void solve_NUB_deriv_interp_1d_d | ( | NUBasis *restrict | basis, |
| double *restrict | data, | ||
| int | datastride, | ||
| double *restrict | p, | ||
| int | pstride, | ||
| double | abcdInitial[4], | ||
| double | abcdFinal[4] ) |
Definition at line 396 of file nubspline_create.cpp.
References get_NUBasis_funcs_di(), and p.
| void solve_NUB_deriv_interp_1d_s | ( | NUBasis *restrict | basis, |
| float *restrict | data, | ||
| int | datastride, | ||
| float *restrict | p, | ||
| int | pstride, | ||
| float | abcdInitial[4], | ||
| float | abcdFinal[4] ) |
Definition at line 52 of file nubspline_create.cpp.
References get_NUBasis_funcs_si(), and p.
| void solve_NUB_periodic_interp_1d_d | ( | NUBasis *restrict | basis, |
| double *restrict | data, | ||
| int | datastride, | ||
| double *restrict | p, | ||
| int | pstride ) |
Definition at line 471 of file nubspline_create.cpp.
References get_NUBasis_funcs_di(), and p.
| void solve_NUB_periodic_interp_1d_s | ( | NUBasis *restrict | basis, |
| float *restrict | data, | ||
| int | datastride, | ||
| float *restrict | p, | ||
| int | pstride ) |
Definition at line 129 of file nubspline_create.cpp.
References get_NUBasis_funcs_si(), and p.