Super Mario 64 Source
A Super Mario 64 decompilation, brought to you by a bunch of clever folks.
Macros | Functions
tabledesign.h File Reference
#include <stdio.h>

Go to the source code of this file.

Macros

#define UNUSED
 

Functions

int durbin (double *thing, int n, double *thing2, double *thing3, double *outSomething)
 
void afromk (double *in, double *out, int n)
 
int kfroma (double *in, double *out, int n)
 
void rfroma (double *dataRow, int n, double *thing3)
 
double model_dist (double *first, double *second, int n)
 
void acmat (short *in, int n, int m, double **mat)
 
void acvect (short *in, int n, int m, double *vec)
 
int lud (double **a, int n, int *indx, int *d)
 Replaces a real n-by-n matrix "a" with the LU decomposition of a row-wise permutation of itself. More...
 
void lubksb (double **a, int n, int *indx, double *b)
 Solves the set of n linear equations Ax = b, using LU decomposition back-substitution. More...
 
void split (double **table, double *delta, int order, int npredictors, double scale)
 
void refine (double **table, int order, int npredictors, double **data, int dataSize, int refineIters, double unused)
 
int print_entry (FILE *out, double *row, int order)
 

Macro Definition Documentation

◆ UNUSED

#define UNUSED

Function Documentation

◆ acmat()

void acmat ( short *  in,
int  n,
int  m,
double **  mat 
)

◆ acvect()

void acvect ( short *  in,
int  n,
int  m,
double *  vec 
)

◆ afromk()

void afromk ( double *  in,
double *  out,
int  n 
)

◆ durbin()

int durbin ( double *  thing,
int  n,
double *  thing2,
double *  thing3,
double *  outSomething 
)

◆ kfroma()

int kfroma ( double *  in,
double *  out,
int  n 
)

◆ lubksb()

void lubksb ( double **  a,
int  n,
int indx,
double *  b 
)

Solves the set of n linear equations Ax = b, using LU decomposition back-substitution.

Input parameters: a: The LU decomposition of a matrix, created by "lud". n: The size of the matrix. indx: Row permutation vector, created by "lud". b: The vector b in the equation. 1-indexed; is should be of size n+1, and index 0 is not used.

Output parameters: b: The output vector x. 1-indexed.

From "Numerical Recipes in C: The Art of Scientific Computing".

◆ lud()

int lud ( double **  a,
int  n,
int indx,
int d 
)

Replaces a real n-by-n matrix "a" with the LU decomposition of a row-wise permutation of itself.

Input parameters: a: The matrix which is operated on. 1-indexed; it should be of size (n+1) x (n+1), and row/column index 0 is not used. n: The size of the matrix.

Output parameters: indx: The row permutation performed. 1-indexed; it should be of size n+1, and index 0 is not used. d: the determinant of the permutation matrix.

Returns 1 to indicate failure if the matrix is singular or has zeroes on the diagonal, 0 on success.

Derived from ludcmp in "Numerical Recipes in C: The Art of Scientific Computing", with modified error handling.

◆ model_dist()

double model_dist ( double *  first,
double *  second,
int  n 
)

◆ print_entry()

int print_entry ( FILE *  out,
double *  row,
int  order 
)

◆ refine()

void refine ( double **  table,
int  order,
int  npredictors,
double **  data,
int  dataSize,
int  refineIters,
double  unused 
)

◆ rfroma()

void rfroma ( double *  dataRow,
int  n,
double *  thing3 
)

◆ split()

void split ( double **  table,
double *  delta,
int  order,
int  npredictors,
double  scale 
)