EVSL  1.1.0
EigenValues Slicing Library
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros
Data Structures | Typedefs | Functions
vect.c File Reference

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)
 

Detailed Description

Vector operations.

Definition in file vect.c.

Typedef Documentation

typedef struct _doubleint doubleint

Function Documentation

int compare1 ( const void *  a,
const void *  b 
)

Definition at line 66 of file vect.c.

Referenced by sort_double().

Here is the caller graph for this function:

int compare2 ( const void *  a,
const void *  b 
)

Definition at line 81 of file vect.c.

References _doubleint::d.

Referenced by sort_double().

Here is the caller graph for this function:

void linspace ( double  a,
double  b,
int  num,
double *  arr 
)

Definition at line 54 of file vect.c.

Referenced by exDOS(), LanDos(), LanDosG(), lsPol(), main(), and spslicer().

Here is the caller graph for this function:

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().

Here is the caller graph for this function:

void randn_double ( int  n,
double *  v 
)

Definition at line 26 of file vect.c.

Referenced by LanDos(), and LanDosG().

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void vec_iperm ( int  n,
int *  p,
double *  x,
double *  y 
)

Definition at line 127 of file vect.c.

void vec_perm ( int  n,
int *  p,
double *  x,
double *  y 
)

Definition at line 114 of file vect.c.

void vecset ( int  n,
double  t,
double *  v 
)

Definition at line 48 of file vect.c.

Referenced by chebxPltd().

Here is the caller graph for this function: