![]() |
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: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.
| #define TEST_N 1 |
Print the pairwise row dot products of a 3x3 matrix.
Print the row-wise orthogonality residuals of a 3x3 matrix.
References i, print_float(), and TYPE.
Referenced by main().
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. |
Referenced by _masks_gui_menu_item_forward_event(), _set_help_string(), _update_tree_view_nodes_font(), 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 | ( | ) |
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_draw_location(), dt_drawlayer_set_os_cursor_hidden(), dt_masks_draw_source(), search_accels_callback(), and wmain().
Print one scalar diagnostic produced by the orthogonality check.
Print one scalar residual.
Referenced by check_orthonormal().