Epstein Zeta Library 0.5.0
Calculates the Epstein Zeta function
Loading...
Searching...
No Matches
Functions
tools.h File Reference

Minimal linear algebra for matrix vector operations. More...

#include <stdbool.h>
Include dependency graph for tools.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

double dot (unsigned int dim, const double *v1, const double *v2)
 euclidean dot product.
 
void matrix_intVector (unsigned int dim, const double *m, const int *v, double *res)
 matrix - (integer) vector multiplication.
 
void transpose (unsigned int dim, double *m)
 square matrix transpose.
 
bool equals (unsigned int dim, const double *v1, const double *v2)
 check if two vectors are equal.
 
bool equalsZero (unsigned int dim, const double *v)
 
void invert (unsigned int dim, double *m, int *p, double *r)
 Invert matrix.
 
double inf_norm (unsigned int dim, const double *m)
 Compute infinity norm (maximum sum row norm).
 

Detailed Description

Minimal linear algebra for matrix vector operations.

Function Documentation

◆ dot()

double dot ( unsigned int dim,
const double * v1,
const double * v2 )

euclidean dot product.

Parameters
[in]dimdimension of the input vectors
[in]v1first vector.
[in]v2second vector.
Returns
dot product of v1 and v2.

◆ equals()

bool equals ( unsigned int dim,
const double * v1,
const double * v2 )

check if two vectors are equal.

Parameters
[in]dimdimension of the vectors.
[in]v1first vector.
[in]v2second vector.
Returns
true if the vectors are equal, false if the vectors are not equal.

◆ inf_norm()

double inf_norm ( unsigned int dim,
const double * m )

Compute infinity norm (maximum sum row norm).

Parameters
[in]dimdimension of the vectors.
[in]mmatrix to compute infinity norm of.

◆ invert()

void invert ( unsigned int dim,
double * m,
int * p,
double * r )

Invert matrix.

Parameters
[in]dimdimension of the vectors.
[in,out]mmatrix to invert. overwritten bei LU-decomposition.
[out]ppermutation vector.
[out]rwhere inverse matrix is stored.

◆ matrix_intVector()

void matrix_intVector ( unsigned int dim,
const double * m,
const int * v,
double * res )

matrix - (integer) vector multiplication.

Parameters
[in]dimdimension of the square matrix and the integer vector.
[in]msquare matrix.
[in]vinteger vector.
[in,out]ressolution vector of the vector matrix multiplication.

◆ transpose()

void transpose ( unsigned int dim,
double * m )

square matrix transpose.

Parameters
[in]dimdimension of the square matrix.
[in,out]msquare matrix.