|
Krita Source Code Documentation
|
#include "nugrid.h"#include <cmath>#include <stdlib.h>#include <assert.h>#include <boost/math/special_functions/log1p.hpp>#include <boost/math/special_functions/expm1.hpp>Go to the source code of this file.
Functions | |
| int | center_grid_reverse_map (void *gridptr, double x) |
| NUgrid * | create_center_grid (double start, double end, double ratio, int num_points) |
| NUgrid * | create_general_grid (double *points, int num_points) |
| NUgrid * | create_log_grid (double start, double end, int num_points) |
| void | destroy_grid (NUgrid *grid) |
| int | general_grid_reverse_map (void *gridptr, double x) |
| int | log_grid_reverse_map (void *gridptr, double x) |
| int center_grid_reverse_map | ( | void * | gridptr, |
| double | x ) |
Definition at line 32 of file nugrid.cpp.
References center_grid::aInv, center_grid::bInv, center_grid::center, center_grid::even_half, and center_grid::half_points.
| NUgrid * create_center_grid | ( | double | start, |
| double | end, | ||
| double | ratio, | ||
| int | num_points ) |
Definition at line 83 of file nugrid.cpp.
References center_grid::a, center_grid::aInv, center_grid::b, center_grid::bInv, CENTER, center_grid::center, center_grid_reverse_map(), center_grid::code, center_grid::end, center_grid::even_half, center_grid::half_points, center_grid::num_points, center_grid::odd, center_grid::odd_one, center_grid::points, center_grid::reverse_map, sign(), and center_grid::start.
| NUgrid * create_general_grid | ( | double * | points, |
| int | num_points ) |
Definition at line 155 of file nugrid.cpp.
References NUgrid::code, NUgrid::end, GENERAL, general_grid_reverse_map(), NUgrid::num_points, NUgrid::points, NUgrid::reverse_map, and NUgrid::start.
| NUgrid * create_log_grid | ( | double | start, |
| double | end, | ||
| int | num_points ) |
Definition at line 135 of file nugrid.cpp.
References log_grid::a, log_grid::ainv, log_grid::code, log_grid::end, LOG, log_grid_reverse_map(), log_grid::num_points, log_grid::points, log_grid::reverse_map, log_grid::start, and log_grid::startinv.
Definition at line 173 of file nugrid.cpp.
References NUgrid::points.
| int general_grid_reverse_map | ( | void * | gridptr, |
| double | x ) |
Definition at line 57 of file nugrid.cpp.
References NUgrid::num_points, and NUgrid::points.
| int log_grid_reverse_map | ( | void * | gridptr, |
| double | x ) |
Definition at line 43 of file nugrid.cpp.
References log_grid::ainv, and log_grid::startinv.