Matrix r4655
Loading...
Searching...
No Matches
Functions
perm.c File Reference
#include "Mdefines.h"
#include "perm.h"

Go to the source code of this file.

Functions

int isPerm (const int *p, int n, int off)
 
int signPerm (const int *p, int n, int off)
 
void invertPerm (const int *p, int *ip, int n, int off, int ioff)
 
void asPerm (const int *p, int *ip, int m, int n, int off, int ioff)
 
SEXP R_isPerm (SEXP p, SEXP off)
 
SEXP R_signPerm (SEXP p, SEXP off)
 
SEXP R_invertPerm (SEXP p, SEXP off, SEXP ioff)
 
SEXP R_asPerm (SEXP p, SEXP off, SEXP ioff, SEXP n)
 

Function Documentation

◆ asPerm()

void asPerm ( const int *  p,
int *  ip,
int  m,
int  n,
int  off,
int  ioff 
)

Definition at line 58 of file perm.c.

References _.

Referenced by R_asPerm().

◆ invertPerm()

void invertPerm ( const int *  p,
int *  ip,
int  n,
int  off,
int  ioff 
)

Definition at line 48 of file perm.c.

References _, and isPerm().

Referenced by R_invertPerm().

◆ isPerm()

int isPerm ( const int *  p,
int  n,
int  off 
)

Definition at line 4 of file perm.c.

References Matrix_Calloc, and Matrix_Free.

Referenced by invertPerm(), R_isPerm(), and signPerm().

◆ R_asPerm()

SEXP R_asPerm ( SEXP  p,
SEXP  off,
SEXP  ioff,
SEXP  n 
)

Definition at line 130 of file perm.c.

References _, and asPerm().

◆ R_invertPerm()

SEXP R_invertPerm ( SEXP  p,
SEXP  off,
SEXP  ioff 
)

Definition at line 110 of file perm.c.

References _, and invertPerm().

◆ R_isPerm()

SEXP R_isPerm ( SEXP  p,
SEXP  off 
)

Definition at line 76 of file perm.c.

References _, and isPerm().

◆ R_signPerm()

SEXP R_signPerm ( SEXP  p,
SEXP  off 
)

Definition at line 93 of file perm.c.

References _, and signPerm().

◆ signPerm()

int signPerm ( const int *  p,
int  n,
int  off 
)

Definition at line 23 of file perm.c.

References _, isPerm(), Matrix_Calloc, and Matrix_Free.

Referenced by R_signPerm(), sparseLU_determinant(), and sparseQR_determinant().