NM API reference

Non-Linear Solver

# include "myNM.h"

Newton-raphson

Finds the solution of a non-linear equation with the given range.

void newtonraphson()

Parameters

  • vector type m

Linear Solver

solveLinear()

solves for vector x from Ax=b, a linear system problem

extern Matrix solveLinear(Matrix _A, Matrix _b, char* _method)

Parameters

  • A: Matrix A in structure Matrix form. Should be (nxn) square.

  • b: vector b in structure Matrix form. Should be (nx1)

  • method: character type,

    • 'lu' : LU decomposition

    • 'gauss': Gauss elimination

Examples

// Example code goes here

Last updated