Plan 9 from Bell Labs’s /usr/web/sources/contrib/pac/sys/src/ape/cmd/bio/MrBayes_2.01/matrices.h

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


/*	matrices.h
|
|	Header for routines defined in matrices.c
|
|	Copyright (c) 1998 by David L. Swofford, Smithsonian Institution.
|	All rights reserved.
|
|	Things that (may) need to be done before including this file:
|	=============================================================
|	  -	if ANSI function prototypes are not supported, define NO_PROTOTYPES
|	  - typedef type VoidPtr as void * if possible, otherwise as char *
*/

typedef void * VoidPtr;

extern int          AllocMatrix (VoidPtr pA, size_t elSize, int rows, int cols);
extern void         DeallocMatrix (VoidPtr pA);
extern short **     ShortMatrix (int rows, int cols, short **a, short *buffer);
extern double **    DoubleMatrix (int rows, int cols, double **a, double *buffer);
extern void         SetIdentityMatrix (double **a, int n);
extern void         CopyDoubleMatrix (double **a, double **b, int m, int n);
extern void         ListDoubleMatrix (char *title, double **a, int m, int n);
extern void         ListFloatMatrix (char *title, float **a, int m, int n);
extern void         ListDoubleVector (char *title, double *a, int n);

extern double       **psdmatrix (int dim);
extern void         free_psdmatrix (double **m);
extern void         copy_psdmatrix (double **from, double **to, int dim);
extern int **       jimatrix (int a, int b);
extern void         free_jimatrix (int **m);

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.