RcdMathLib_doc
Open Source Library for Linear and Non-linear Algebra
newton_raphson.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2020 Zakaria Kasmi <zkasmi@inf.fu-berlin.de>
3  * 2020 Freie Universität Berlin
4  *
5  * This file is subject to the terms and conditions of the GNU Lesser General
6  * Public License v2.1. See the file LICENSE in the top level directory for more
7  * details.
8  */
9 
23 #ifndef NEWTON_RAPHSON_H_
24 #define NEWTON_RAPHSON_H_
25 
26 #include <inttypes.h>
27 
28 #include "vector.h"
29 #include "matrix.h"
30 
48 uint8_t newton_raphson(uint8_t f_length, uint8_t n, vector_t x0_arr[],
49  double eps, uint8_t max_it_num, vector_t est_x_arr[],
50  void (*get_non_lin_sys)(vector_t x_arr[], vector_t f_vec[]),
51  void (*get_jacobian)(vector_t x_arr[], matrix_t J[][n]));
52 
53 #endif /* NEWTON_RAPHSON_H_ */
vector_t
#define vector_t
Define the data type of the vector elements.
Definition: vector.h:33
matrix.h
Matrix computations.
newton_raphson
uint8_t newton_raphson(uint8_t f_length, uint8_t n, vector_t x0_arr[], double eps, uint8_t max_it_num, vector_t est_x_arr[], void(*get_non_lin_sys)(vector_t x_arr[], vector_t f_vec[]), void(*get_jacobian)(vector_t x_arr[], matrix_t J[][n]))
Implements the Newton–Raphson algorithm.
Definition: newton_raphson.c:28
matrix_t
#define matrix_t
Define the data type of the matrix elements.
Definition: matrix.h:38
vector.h
Vector computations.