SPEIGS 1.0.0
mex_speigs.c File Reference

Mexfile entry function for speigs. More...

#include <stdio.h>
#include "speigs.h"

Macros

#define V   plhs[0]
 
#define e   plhs[1]
 
#define A   prhs[0]
 
#define opts   prhs[1]
 

Functions

static void print_mtype (spint mtype)
 Print type of matrix. More...
 
void mexFunction (int nlhs, mxArray *plhs[], int nrhs, const mxArray *prhs[])
 Matlab entry function. More...
 

Detailed Description

Mexfile entry function for speigs.

Author
Wenzhi Gao, Shanghai University of Finance and Economics
Date
Aug, 24th, 2022

Function Documentation

◆ mexFunction()

void mexFunction ( int  nlhs,
mxArray *  plhs[],
int  nrhs,
const mxArray *  prhs[] 
)

Matlab entry function.

Parameters
[in]nlhsNumber of left-hand-side parameters
[out]plhsPointers for left-hand-side parameters
[in]nrhsNumber of right-hand-side parameters
[out]prhsPointers for left-hand-side parameters

Matab entry for [V, e] = mex_speigs(A, opts); V is a n by r array that gives r eigenvectors and e is all the nonzero eigen-values. opts.gthresh specifies when submatrix permutation is used opts.tol specifies the criterion to decide if an eigen-value is 0 opts.quiet hides logs during factorization

◆ print_mtype()

static void print_mtype ( spint  mtype)
static

Print type of matrix.

Parameters
[in]mtypeType of the matrix