| SPEIGS 1.0.0

Macros | Functions
example.c File Reference

The example for SPEIGS package. More...

`#include <stdio.h>`
`#include <stdlib.h>`
`#include <string.h>`
`#include "example.h"`
`#include "speigs.h"`

## Macros
#define | sperr(x) printf(x); return SP_EIGS_ERR;

## Functions
static void | print_mtype (spint mtype)
static void | print_evd (spint n, double *e, double *V)
spint | test_matrix (spint n, spint *Ap, spint *Ai, double *Ax)
| Test an example of matrix. More...
int | main ()
| Main function. More...

## Detailed Description

The example for SPEIGS package.

A little example that demonstrates how to use SPEIGS

Author
  Wenzhi Gao, Shanghai University of Finance and Economics

Date
  Aug, 25th, 2022

## Function Documentation

## ◆ main()

int main | ( |  | ) |

Main function.

Test the SPEIG routines

## ◆ test_matrix()

spint test_matrix | ( | spint | n,
|  | spint * | Ap,
|  | spint * | Ai,
|  | double * | Ax
| ) |  |

Test an example of matrix.

Sample usage of SPEIGS routine