Gemmi C++ API
Loading...
Searching...
No Matches
Classes | Namespaces | Functions
levmar.hpp File Reference

Least-squares fitting - Levenberg-Marquardt method. More...

#include <cassert>
#include <cmath>
#include <algorithm>
#include <vector>
#include "fail.hpp"
#include "math.hpp"

Go to the source code of this file.

Classes

struct  gemmi::LevMar
 

Namespaces

namespace  gemmi
 

Functions

void gemmi::jordan_solve (double *a, double *b, int n)
 This function solves a set of linear algebraic equations using Gauss-Jordan elimination with partial pivoting.
 
void gemmi::jordan_solve (std::vector< double > &a, std::vector< double > &b)
 
void gemmi::print_parameters (const std::string &name, std::vector< double > &a)
 
template<typename Target >
double gemmi::compute_wssr (const Target &target)
 
template<typename Target >
double gemmi::compute_gradients (const Target &target, unsigned n, double *grad)
 
template<typename Target >
double gemmi::compute_lm_matrices (const Target &target, std::vector< double > &alpha, std::vector< double > &beta)
 

Detailed Description

Least-squares fitting - Levenberg-Marquardt method.

Definition in file levmar.hpp.