Graphviz 12.0.1~dev.20240716.0800
Loading...
Searching...
No Matches
conjgrad.c File Reference
#include <cgraph/alloc.h>
#include <neatogen/matrix_ops.h>
#include <neatogen/conjgrad.h>
#include <stdbool.h>
#include <stdlib.h>
Include dependency graph for conjgrad.c:

Go to the source code of this file.

Functions

int conjugate_gradient (vtx_data *A, double *x, double *b, int n, double tol, int max_iterations)
 
int conjugate_gradient_f (float **A, double *x, double *b, int n, double tol, int max_iterations, bool ortho1)
 
int conjugate_gradient_mkernel (float *A, float *x, float *b, int n, double tol, int max_iterations)
 

Function Documentation

◆ conjugate_gradient()

int conjugate_gradient ( vtx_data A,
double *  x,
double *  b,
int  n,
double  tol,
int  max_iterations 
)

Definition at line 22 of file conjgrad.c.

References A, agerrorf(), alpha, copy_vector(), free(), gv_calloc(), max_abs(), orthog1(), right_mult_with_vector(), tol, vectors_addition(), vectors_inner_product(), vectors_scalar_mult(), and vectors_subtraction().

Here is the call graph for this function:

◆ conjugate_gradient_f()

int conjugate_gradient_f ( float **  A,
double *  x,
double *  b,
int  n,
double  tol,
int  max_iterations,
bool  ortho1 
)

Definition at line 91 of file conjgrad.c.

References A, agerrorf(), alpha, cleanup1(), copy_vector(), free(), gv_calloc(), max_abs(), orthog1(), right_mult_with_vector_f(), tol, vectors_addition(), vectors_inner_product(), vectors_scalar_mult(), and vectors_subtraction().

Referenced by sparse_stress_subspace_majorization_kD().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ conjugate_gradient_mkernel()

int conjugate_gradient_mkernel ( float *  A,
float *  x,
float *  b,
int  n,
double  tol,
int  max_iterations 
)

Definition at line 161 of file conjgrad.c.

References A, agerrorf(), alpha, cleanup2(), copy_vectorf(), free(), gv_calloc(), max_absf(), orthog1f(), right_mult_with_vector_ff(), tol, vectors_inner_productf(), vectors_mult_additionf(), and vectors_subtractionf().

Referenced by stress_majorization_kD_mkernel().

Here is the call graph for this function:
Here is the caller graph for this function: