⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 matrix.h

📁 General Hidden Markov Model Library 一个通用的隐马尔科夫模型的C代码库
💻 H
字号:
/*********************************************************************************       This file is part of the General Hidden Markov Model Library,*       GHMM version 0.8_beta1, see http://ghmm.org**       Filename: ghmm/ghmm/matrix.h*       Authors:  Bernhard Knab, Benjamin Georgi**       Copyright (C) 1998-2004 Alexander Schliep *       Copyright (C) 1998-2001 ZAIK/ZPR, Universitaet zu Koeln*	Copyright (C) 2002-2004 Max-Planck-Institut fuer Molekulare Genetik, *                               Berlin*                                   *       Contact: schliep@ghmm.org             **       This library is free software; you can redistribute it and/or*       modify it under the terms of the GNU Library General Public*       License as published by the Free Software Foundation; either*       version 2 of the License, or (at your option) any later version.**       This library is distributed in the hope that it will be useful,*       but WITHOUT ANY WARRANTY; without even the implied warranty of*       MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU*       Library General Public License for more details.**       You should have received a copy of the GNU Library General Public*       License along with this library; if not, write to the Free*       Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA***       This file is version $Revision: 1436 $ *                       from $Date: 2005-10-12 13:35:29 +0200 (Wed, 12 Oct 2005) $*             last change by $Author: grunau $.********************************************************************************/#ifndef GHMM_MATRICE_H#define GHMM_MATRICE_H#include <stdio.h>#include "scanner.h"#ifdef __cplusplusextern "C" {#endif/**@name Matrix *//*@{ (Doc++-Group: matrix) *//**  Allocation of a double matrix.   @return pointer to a matrix  @param rows: number of rows  @param columns: number of columns  */  double **ighmm_cmatrix_alloc (int n, int m);/**  Allocation of a 3 dimensional double matrix.   @return pointer to a matrix  @param rows: number of rows  @param columns: number of columns  @param height: 3rd dimension  */double *** ighmm_cmatrix_3d_alloc(int i, int j, int k);int ighmm_cmatrix_3d_free(double **** matrix, int i, int j);int *** ighmm_dmatrix_3d_alloc(int i, int j, int k);int ighmm_dmatrix_3d_free(int **** matrix, int i, int j);/**  Copying and allocation of a double matrix.  @return pointer to a matrix  @param rows: number of rows  @param columns: number of columns  @param copymatrix: matrix to copy   */  double **ighmm_cmatrix_alloc_copy (int rows, int columns, double **copymatrix);/**  Free the memory of a double matrix.  @return 0 for succes; -1 for error  @param  matrix: matrix to free  @param  rows: number of rows  */  int ighmm_cmatrix_free (double ***matrix, long zeilen);/**  Allocation of a static double matrix with a single malloc.   @return pointer to a matrix  @param rows: number of rows  @param columns: number of columns  */  double **ighmm_cmatrix_stat_alloc (int n, int m);/**  Free the memory of a static double matrix.  @return 0 for succes; -1 for error  @param  matrix: matrix to free  @param  rows: number of rows  */  int ighmm_cmatrix_stat_free (double ***matrix);/**  Allocation of a static int matrix with a single malloc.   @return pointer to a matrix  @param rows: number of rows  @param columns: number of columns  */  int **ighmm_dmatrix_stat_alloc (int n, int m);/**  Free the memory of a static int matrix.  @return 0 for succes; -1 for error  @param  matrix: matrix to free  @param  rows: number of rows  */  int ighmm_dmatrix_stat_free (int ***matrix);/**  Allocation of a integer matrix.  @return pointer to a matrix  @param rows: number of rows  @param columns: number of columns  */  int **ighmm_dmatrix_alloc (int rows, int columns);/**  Free the memory of a integer matrix.  @return 0 for succes; -1 for error  @param  matrix: matrix to free  @param  rows: number of rows  */  int ighmm_dmatrix_free (int ***matrix, long rows);#ifdef __cplusplus}#endif#endif/*@} (Doc++-Group: matrix) */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -