![]() |
Ansel 0.0
A darktable fork - bloat + design vision
|
Small standalone test program for the experimental polar decomposition code. More...
Include dependency graph for prova.c:Go to the source code of this file.
Macros | |
| #define | TEST_N 1 |
Functions | |
| void | print_float (double num) |
| Print one scalar diagnostic produced by the orthogonality check. | |
| void | check_orthonormal (double Q[3][3]) |
| Print the pairwise row dot products of a 3x3 matrix. | |
| void | stampa_3x3 (double Q[3][3]) |
| Print a 3x3 matrix in row-major order. | |
| void | copy (double *dest, double *source, size_t num_el) |
| Copy a flat buffer used to initialize test matrices. | |
| int | main () |
Small standalone test program for the experimental polar decomposition code.
The program feeds a few hard-coded 3x3 matrices into polar_decomposition(), prints the resulting factors, and checks that the recovered orthogonal matrix has nearly orthogonal rows.
Definition in file prova.c.
Copy a flat buffer used to initialize test matrices.
Copy a flat buffer used to initialize test matrices.
| [out] | dest | Destination buffer. |
| [in] | source | Source buffer. |
| [in] | num_el | Number of elements to copy. |
Definition at line 1054 of file polar_decomposition.h.
Referenced by _masks_gui_menu_item_forward_event(), _set_help_string(), dt_cairo_sharpen_surface_rgb24(), dt_collection_load_filmroll(), dt_ioppr_extract_multi_instances_list(), dt_ioppr_merge_multi_instance_iop_order_list(), gui_init(), main(), and polar_decomposition().
| int main | ( | ) |
Definition at line 47 of file prova.c.
References A, check_orthonormal(), copy(), H, matrix_multiply(), polar_decomposition(), stampa_3x3(), TEST_N, and TYPE.
Referenced by _draw_ellipse(), _draw_location(), _draw_rectangle(), _show_drawlayer_wait_dialog(), _view_map_dnd_get_callback(), _view_map_draw_location(), dt_masks_draw_source(), search_accels_callback(), and wmain().
Print one scalar diagnostic produced by the orthogonality check.
Print one scalar residual.
Definition at line 124 of file prova.c.
Referenced by check_orthonormal().