Defines | Functions
check_linear_algebra.c File Reference
#include <math.h>
#include <stdlib.h>
#include <check.h>
#include <stdio.h>
#include "check_utils.h"
#include <linear_algebra.h>
Include dependency graph for check_linear_algebra.c:

Go to the source code of this file.

Defines

#define LINALG_NUM   22
#define LINALG_TOL   1e-10
#define MATRIX_MAX   1e3
#define MATRIX_MIN   -1e3
#define mrand   frand(MATRIX_MIN, MATRIX_MAX)
#define MSIZE_MAX   64

Functions

END_TEST Suite * linear_algebra_suite (void)
 START_TEST (test_matrix_inverse_2x2)
END_TEST START_TEST (test_matrix_inverse_3x3)
END_TEST START_TEST (test_matrix_inverse_4x4)
END_TEST START_TEST (test_matrix_inverse_5x5)
END_TEST START_TEST (test_matrix_eye)
END_TEST START_TEST (test_matrix_triu)
END_TEST START_TEST (test_matrix_udu_1)
END_TEST START_TEST (test_matrix_udu_2)
END_TEST START_TEST (test_matrix_udu_3)
END_TEST START_TEST (test_matrix_reconstruct_udu)
END_TEST START_TEST (test_matrix_add_sc)
END_TEST START_TEST (test_matrix_copy)
END_TEST START_TEST (test_matrix_transpose)
END_TEST START_TEST (test_vector_dot)
END_TEST START_TEST (test_vector_mean)
END_TEST START_TEST (test_vector_norm)
END_TEST START_TEST (test_vector_normalize)
END_TEST START_TEST (test_vector_add_sc)
END_TEST START_TEST (test_vector_add)
END_TEST START_TEST (test_vector_subtract)
END_TEST START_TEST (test_vector_cross)
END_TEST START_TEST (test_vector_three)

Define Documentation

#define LINALG_NUM   22

Definition at line 11 of file check_linear_algebra.c.

#define LINALG_TOL   1e-10

Definition at line 10 of file check_linear_algebra.c.

#define MATRIX_MAX   1e3

Definition at line 13 of file check_linear_algebra.c.

#define MATRIX_MIN   -1e3

Definition at line 12 of file check_linear_algebra.c.

#define mrand   frand(MATRIX_MIN, MATRIX_MAX)

Definition at line 14 of file check_linear_algebra.c.

#define MSIZE_MAX   64

Definition at line 15 of file check_linear_algebra.c.


Function Documentation

END_TEST Suite* linear_algebra_suite ( void  )

Definition at line 669 of file check_linear_algebra.c.

START_TEST ( test_matrix_inverse_2x2  )

Definition at line 19 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_inverse_3x3  )

Definition at line 50 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_inverse_4x4  )

Definition at line 83 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_inverse_5x5  )

Definition at line 118 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_eye  )

Definition at line 155 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_triu  )

Definition at line 173 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_udu_1  )

Definition at line 199 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_udu_2  )

Definition at line 233 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_udu_3  )

Definition at line 281 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_reconstruct_udu  )

Definition at line 306 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_add_sc  )

Definition at line 336 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_copy  )

Definition at line 358 of file check_linear_algebra.c.

END_TEST START_TEST ( test_matrix_transpose  )

Definition at line 382 of file check_linear_algebra.c.

END_TEST START_TEST ( test_vector_dot  )

Definition at line 406 of file check_linear_algebra.c.

END_TEST START_TEST ( test_vector_mean  )

Definition at line 439 of file check_linear_algebra.c.

END_TEST START_TEST ( test_vector_norm  )

Definition at line 459 of file check_linear_algebra.c.

END_TEST START_TEST ( test_vector_normalize  )

Definition at line 478 of file check_linear_algebra.c.

END_TEST START_TEST ( test_vector_add_sc  )

Definition at line 496 of file check_linear_algebra.c.

END_TEST START_TEST ( test_vector_add  )

Definition at line 514 of file check_linear_algebra.c.

END_TEST START_TEST ( test_vector_subtract  )

Definition at line 534 of file check_linear_algebra.c.

END_TEST START_TEST ( test_vector_cross  )

Definition at line 554 of file check_linear_algebra.c.

END_TEST START_TEST ( test_vector_three  )

Definition at line 584 of file check_linear_algebra.c.



swiftnav
Author(s):
autogenerated on Sat Jun 8 2019 18:56:47