(git:b77b4be)
Loading...
Searching...
No Matches
grpp_utils.c File Reference
#include <math.h>
#include <stdlib.h>
#include "grpp_utils.h"

Go to the source code of this file.

Functions

int int_max2 (int x, int y)
 
int int_max3 (int x, int y, int z)
 
double * alloc_zeros_1d (int n)
 
double ** alloc_zeros_2d (int n, int m)
 
void free_2d (double **array, int n)
 
void libgrpp_daxpy (int n, double a, double *x, double *y)
 
void libgrpp_multiply_matrices (int M, int N, int K, double *A, double *B, double *C)
 
double distance_squared (double *A, double *B)
 
double distance (double *A, double *B)
 
int points_are_equal (double *a, double *b)
 

Function Documentation

◆ int_max2()

int int_max2 ( int  x,
int  y 
)
inline

Definition at line 19 of file grpp_utils.c.

Here is the caller graph for this function:

◆ int_max3()

int int_max3 ( int  x,
int  y,
int  z 
)
inline

Definition at line 21 of file grpp_utils.c.

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

◆ alloc_zeros_1d()

double * alloc_zeros_1d ( int  n)

Definition at line 23 of file grpp_utils.c.

Here is the caller graph for this function:

◆ alloc_zeros_2d()

double ** alloc_zeros_2d ( int  n,
int  m 
)

Definition at line 25 of file grpp_utils.c.

Here is the caller graph for this function:

◆ free_2d()

void free_2d ( double **  array,
int  n 
)

Definition at line 35 of file grpp_utils.c.

Here is the caller graph for this function:

◆ libgrpp_daxpy()

void libgrpp_daxpy ( int  n,
double  a,
double *  x,
double *  y 
)

Definition at line 46 of file grpp_utils.c.

Here is the caller graph for this function:

◆ libgrpp_multiply_matrices()

void libgrpp_multiply_matrices ( int  M,
int  N,
int  K,
double *  A,
double *  B,
double *  C 
)

Definition at line 55 of file grpp_utils.c.

Here is the caller graph for this function:

◆ distance_squared()

double distance_squared ( double *  A,
double *  B 
)

Definition at line 68 of file grpp_utils.c.

Here is the caller graph for this function:

◆ distance()

double distance ( double *  A,
double *  B 
)

Definition at line 75 of file grpp_utils.c.

Here is the call graph for this function:

◆ points_are_equal()

int points_are_equal ( double *  a,
double *  b 
)

Checks if two 3d points coincide with each other.

Definition at line 80 of file grpp_utils.c.

Here is the caller graph for this function: