EVSL
1.1.0
EigenValues Slicing Library
|
Vector operations. More...
#include <stdlib.h>
#include <string.h>
#include "def.h"
#include "struct.h"
#include "internal_proto.h"
Go to the source code of this file.
Data Structures | |
struct | _doubleint |
Typedefs | |
typedef struct _doubleint | doubleint |
Functions | |
void | rand_double (int n, double *v) |
void | randn_double (int n, double *v) |
void | vecset (int n, double t, double *v) |
void | linspace (double a, double b, int num, double *arr) |
int | compare1 (const void *a, const void *b) |
int | compare2 (const void *a, const void *b) |
void | sort_double (int n, double *v, int *ind) |
void | vec_perm (int n, int *p, double *x, double *y) |
void | vec_iperm (int n, int *p, double *x, double *y) |
Vector operations.
Definition in file vect.c.
typedef struct _doubleint doubleint |
int compare1 | ( | const void * | a, |
const void * | b | ||
) |
Definition at line 66 of file vect.c.
Referenced by sort_double().
int compare2 | ( | const void * | a, |
const void * | b | ||
) |
Definition at line 81 of file vect.c.
References _doubleint::d.
Referenced by sort_double().
void linspace | ( | double | a, |
double | b, | ||
int | num, | ||
double * | arr | ||
) |
void rand_double | ( | int | n, |
double * | v | ||
) |
Definition at line 11 of file vect.c.
Referenced by ChebLanNr(), ChebLanTr(), evsl_cheblannr(), evsl_cheblantr(), evsl_lanbounds(), evsl_ratlannr(), evsl_ratlantr(), kpmdos(), LanDosG(), LanTrbounds(), main(), RatLanNr(), and RatLanTr().
void randn_double | ( | int | n, |
double * | v | ||
) |
void sort_double | ( | int | n, |
double * | v, | ||
int * | ind | ||
) |
Definition at line 92 of file vect.c.
References compare1(), compare2(), _doubleint::d, _doubleint::i, and Malloc.
Referenced by exeiglap3(), and main().
void vecset | ( | int | n, |
double | t, | ||
double * | v | ||
) |
Definition at line 48 of file vect.c.
Referenced by chebxPltd().