亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? nrutil.cpp

?? HMM的c實(shí)現(xiàn)
?? CPP
字號(hào):
//nrutil.cpp
#include "StdAfx.h"
#include <stdio.h>
#include <stddef.h>
#include <stdlib.h>

//報(bào)告錯(cuò)誤
void nrerror(char *error_text)
{
	printf("Numerical Recipes run-time error...\n");
	printf("%s\n",error_text);
	printf("...now exiting to system...\n");
	exit(1);
}

/*****************************************************************************
 * 函數(shù)名稱:vector
 * 功能:申請一個(gè)實(shí)數(shù)數(shù)組
 * 參數(shù):nl:數(shù)組的最低下標(biāo)
 *       nh:數(shù)組的最高下標(biāo)
 * 返回:數(shù)組地址
 */
float *vector(long nl,long nh)
{
	float *v;

	v=(float *)calloc((unsigned) (nh-nl+1),sizeof(float));
	if (!v) nrerror("allocation failure in vector()");
	return v-nl;
}

/*****************************************************************************
 * 函數(shù)名稱:ivector
 * 功能:申請一個(gè)整數(shù)數(shù)組
 * 參數(shù):nl:數(shù)組的最低下標(biāo)
 *       nh:數(shù)組的最高下標(biāo)
 * 返回:數(shù)組地址
 */
int *ivector(long nl,long nh)
{
	int *v;

	v=(int *)calloc((unsigned) (nh-nl+1),sizeof(int));
	if (!v) nrerror("allocation failure in ivector()");
	return v-nl;
}

/*****************************************************************************
 * 函數(shù)名稱:cvector
 * 功能:申請一個(gè)無符號(hào)字符數(shù)組
 * 參數(shù):nl:數(shù)組的最低下標(biāo)
 *       nh:數(shù)組的最高下標(biāo)
 * 返回:數(shù)組地址
 */
unsigned char *cvector(long nl,long nh)
{
	unsigned char *v;

	v=(unsigned char *)calloc((unsigned) (nh-nl+1),sizeof(unsigned char));
	if (!v) nrerror("allocation failure in cvector()");
	return v-nl;
}

/*****************************************************************************
 * 函數(shù)名稱:lvector
 * 功能:申請一個(gè)長整數(shù)型數(shù)組
 * 參數(shù):nl:數(shù)組的最低下標(biāo)
 *       nh:數(shù)組的最高下標(biāo)
 * 返回:數(shù)組地址
 */
unsigned long *lvector(long nl,long nh)
{
	unsigned long *v;

	v=(unsigned long *)calloc((unsigned) (nh-nl+1),sizeof(unsigned long));
	if (!v) nrerror("allocation failure in lvector()");
	return v-nl;
}

/*****************************************************************************
 * 函數(shù)名稱:dvector
 * 功能:申請一個(gè)雙精度實(shí)數(shù)數(shù)組
 * 參數(shù):nl:數(shù)組的最低下標(biāo)
 *       nh:數(shù)組的最高下標(biāo)
 * 返回:數(shù)組地址
 */
double *dvector(long nl,long nh)
{
	double *v;

	v=(double *)calloc((unsigned) (nh-nl+1),sizeof(double));
	if (!v) nrerror("allocation failure in dvector()");
	return v-nl;
}

/*****************************************************************************
 * 函數(shù)名稱:matrix
 * 功能:申請一個(gè)實(shí)數(shù)二維數(shù)組(矩陣)
 * 參數(shù):nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 返回:數(shù)組地址
 */
float **matrix(long nrl,long nrh,long ncl,long nch)
{
	int i;
	float **m;

	m=(float **) calloc((unsigned) (nrh-nrl+1),sizeof(float*));
	if (!m) nrerror("allocation failure 1 in matrix()");
	m -= nrl;

	for(i=nrl;i<=nrh;i++) {
		m[i]=(float *) calloc((unsigned) (nch-ncl+1),sizeof(float));
		if (!m[i]) nrerror("allocation failure 2 in matrix()");
		m[i] -= ncl;
	}
	return m;
}

/*****************************************************************************
 * 函數(shù)名稱:dmatrix
 * 功能:申請一個(gè)雙精度實(shí)數(shù)二維數(shù)組(矩陣)
 * 參數(shù):nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 返回:數(shù)組地址
 */
double **dmatrix(long nrl,long nrh,long ncl,long nch)
{
	int i;
	double **m;

	m=(double **) calloc((unsigned) (nrh-nrl+1),sizeof(double*));
	if (!m) nrerror("allocation failure 1 in dmatrix()");
	m -= nrl;

	for(i=nrl;i<=nrh;i++) {
		m[i]=(double *) calloc((unsigned) (nch-ncl+1),sizeof(double));
		if (!m[i]) nrerror("allocation failure 2 in dmatrix()");
		m[i] -= ncl;
	}
	return m;
}

/*****************************************************************************
 * 函數(shù)名稱:imatrix
 * 功能:申請一個(gè)整數(shù)二維數(shù)組(矩陣)
 * 參數(shù):nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 返回:數(shù)組地址
 */
int **imatrix(long nrl,long nrh,long ncl,long nch)
{
	int i,**m;

	m=(int **)calloc((unsigned) (nrh-nrl+1),sizeof(int*));
	if (!m) nrerror("allocation failure 1 in imatrix()");
	m -= nrl;

	for(i=nrl;i<=nrh;i++) {
		m[i]=(int *)calloc((unsigned) (nch-ncl+1),sizeof(int));
		if (!m[i]) nrerror("allocation failure 2 in imatrix()");
		m[i] -= ncl;
	}
	return m;
}

/*****************************************************************************
 * 函數(shù)名稱:cmatrix
 * 功能:申請一個(gè)無符號(hào)字符型二維數(shù)組(矩陣)
 * 參數(shù):nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 返回:數(shù)組地址
 */
unsigned char **cmatrix(long nrl,long nrh,long ncl,long nch)
{
	int i;
	unsigned char **m;

	m=(unsigned char **) calloc((unsigned) (nrh-nrl+1),sizeof(unsigned char*));
	if (!m) nrerror("allocation failure 1 in dmatrix()");
	m -= nrl;

	for(i=nrl;i<=nrh;i++) {
		m[i]=(unsigned char *) calloc((unsigned) (nch-ncl+1),sizeof(unsigned char));
		if (!m[i]) nrerror("allocation failure 2 in dmatrix()");
		m[i] -= ncl;
	}
	return m;
}

/*****************************************************************************
 * 函數(shù)名稱:submatrix
 * 功能:求一個(gè)二維矩陣的子矩陣
 * 參數(shù):a:二維矩陣的首地址
 *       oldrl:數(shù)組的行最低下標(biāo)
 *       oldrh:數(shù)組的行最高下標(biāo)
 *       oldcl:數(shù)組的列最低下標(biāo)
 *       oldch:數(shù)組的列最高下標(biāo)
 *       newrl:新數(shù)組的行最低下標(biāo)
 *       newcl:新數(shù)組的列最低下標(biāo)
 * 返回:數(shù)組地址
 */
float **submatrix(float **a,long oldrl,long oldrh,long oldcl,long oldch,long newrl,long newcl)
{
	int i,j;
	float **m;

	m=(float **) calloc((unsigned) (oldrh-oldrl+1),sizeof(float*));
	if (!m) nrerror("allocation failure in submatrix()");
	m -= newrl;

	for(i=oldrl,j=newrl;i<=oldrh;i++,j++) m[j]=a[i]+oldcl-newcl;

	return m;
}

/*****************************************************************************
 * 函數(shù)名稱:convert_matrix
 * 功能:將一個(gè)實(shí)數(shù)一維數(shù)組轉(zhuǎn)化為二維數(shù)組(矩陣)
 * 參數(shù):a:原一維數(shù)組
 *       nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 返回:二維數(shù)組地址
 */
float **convert_matrix(float *a,long nrl,long nrh,long ncl,long nch)
{
	int i,j,nrow,ncol;
	float **m;

	nrow=nrh-nrl+1;
	ncol=nch-ncl+1;
	m = (float **) calloc((unsigned) (nrow),sizeof(float*));
	if (!m) nrerror("allocation failure in convert_matrix()");
	m -= nrl;
	for(i=0,j=nrl;i<=nrow-1;i++,j++) m[j]=a+ncol*i-ncl;
	return m;
}

/*****************************************************************************
 * 函數(shù)名稱:free_vector
 * 功能:釋放一個(gè)實(shí)數(shù)一維數(shù)組
 * 參數(shù):nl:數(shù)組的行最低下標(biāo)
 *       nh:數(shù)組的行最高下標(biāo)
 * 無返回值
 */
void free_vector(float *v,long nl,long nh)
{
	free((char*) (v+nl));
}

/*****************************************************************************
 * 函數(shù)名稱:free_dvector
 * 功能:釋放一個(gè)整型一維數(shù)組
 * 參數(shù):nl:數(shù)組的行最低下標(biāo)
 *       nh:數(shù)組的行最高下標(biāo)
 * 無返回值
 */
void free_ivector(int *v,long nl,long nh)
{
	free((char*) (v+nl));
}

/*****************************************************************************
 * 函數(shù)名稱:free_vector
 * 功能:釋放一個(gè)無符號(hào)字符型一維數(shù)組
 * 參數(shù):nl:數(shù)組的行最低下標(biāo)
 *       nh:數(shù)組的行最高下標(biāo)
 * 無返回值
 */
void free_cvector(unsigned char *v,long nl,long nh)
{
	free((char*) (v+nl));
}

/*****************************************************************************
 * 函數(shù)名稱:free_vector
 * 功能:釋放一個(gè)長整型一維數(shù)組
 * 參數(shù):nl:數(shù)組的行最低下標(biāo)
 *       nh:數(shù)組的行最高下標(biāo)
 * 無返回值
 */
void free_lvector(unsigned long *v,long nl,long nh)
{
	free((char*) (v+nl));
}

/*****************************************************************************
 * 函數(shù)名稱:free_vector
 * 功能:釋放一個(gè)雙精度一維數(shù)組
 * 參數(shù):nl:數(shù)組的行最低下標(biāo)
 *       nh:數(shù)組的行最高下標(biāo)
 * 無返回值
 */
void free_dvector(double *v,long nl,long nh)
{
	free((char*) (v+nl));
}

/*****************************************************************************
 * 函數(shù)名稱:free_matrix
 * 功能:釋放一個(gè)實(shí)數(shù)二維數(shù)組(矩陣)
 * 參數(shù):m:原數(shù)組地址
 *       nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 無返回值
 */
void free_matrix(float **m,long nrl,long nrh,long ncl,long nch)
{
	int i;

	for(i=nrh;i>=nrl;i--) free((char*) (m[i]+ncl));
	free((char*) (m+nrl));
}

/*****************************************************************************
 * 函數(shù)名稱:free_dmatrix
 * 功能:釋放一個(gè)雙精度二維數(shù)組(矩陣)
 * 參數(shù):m:原數(shù)組地址
 *       nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 無返回值
 */
void free_dmatrix(double **m,long nrl,long nrh,long ncl,long nch)
{
	int i;

	for(i=nrh;i>=nrl;i--) free((char*) (m[i]+ncl));
	free((char*) (m+nrl));
}

/*****************************************************************************
 * 函數(shù)名稱:free_imatrix
 * 功能:釋放一個(gè)整型二維數(shù)組(矩陣)
 * 參數(shù):m:原數(shù)組地址
 *       nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 無返回值
 */
void free_imatrix(int **m,long nrl,long nrh,long ncl,long nch)
{
	int i;

	for(i=nrh;i>=nrl;i--) free((char*) (m[i]+ncl));
	free((char*) (m+nrl));
}

/*****************************************************************************
 * 函數(shù)名稱:free_cmatrix
 * 功能:釋放一個(gè)無符號(hào)字符二維數(shù)組(矩陣)
 * 參數(shù):m:原數(shù)組地址
 *       nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 無返回值
 */
void free_cmatrix(unsigned char **m,long nrl,long nrh,long ncl,long nch)
{
	int i;

	for(i=nrh;i>=nrl;i--) free((char*) (m[i]+ncl));
	free((char*) (m+nrl));
}

/*****************************************************************************
 * 函數(shù)名稱:free_submatrix
 * 功能:釋放一個(gè)子二維數(shù)組(矩陣)
 * 參數(shù):b:原數(shù)組地址
 *       nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 無返回值
 */
void free_submatrix(float **b,long nrl,long nrh,long ncl,long nch)
{
	free((char*) (b+nrl));
}
/*****************************************************************************
 * 函數(shù)名稱:free_convert_matrix
 * 功能:釋放轉(zhuǎn)化后的二維數(shù)組(矩陣)
 * 參數(shù):b:原數(shù)組地址
 *       nrl:數(shù)組的行最低下標(biāo)
 *       nrh:數(shù)組的行最高下標(biāo)
 *       ncl:數(shù)組的列最低下標(biāo)
 *       nch:數(shù)組的列最高下標(biāo)
 * 無返回值
 */
void free_convert_matrix(float **b,long nrl,long nrh,long ncl,long nch)
{
	free((char*) (b+nrl));
}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
www成人在线观看| 亚洲一区二区三区四区的 | 777欧美精品| 日韩国产一二三区| 日韩欧美一区二区不卡| 国精品**一区二区三区在线蜜桃 | 国产精品免费视频观看| 成人美女在线视频| 亚洲黄色av一区| 91精品福利在线一区二区三区 | 日韩国产欧美三级| 国产成人福利片| 国产色一区二区| 在线日韩国产精品| 韩国中文字幕2020精品| 国产精品电影一区二区| 欧美日韩一级大片网址| 精品一二三四区| 中文字幕中文字幕在线一区 | 精品乱码亚洲一区二区不卡| 国产成人免费av在线| 亚洲免费av高清| 精品国产在天天线2019| 91碰在线视频| 国精品**一区二区三区在线蜜桃| 亚洲人成网站影音先锋播放| 日韩欧美电影一区| 91丨九色丨黑人外教| 免费成人深夜小野草| 国产精品理伦片| 日韩亚洲国产中文字幕欧美| 9色porny自拍视频一区二区| 日韩av电影免费观看高清完整版 | 欧美影院精品一区| 国产一区二区三区电影在线观看| 亚洲欧美二区三区| 久久久亚洲午夜电影| 欧美午夜在线一二页| 国产xxx精品视频大全| 天天操天天综合网| 亚洲天堂av一区| 久久蜜桃av一区精品变态类天堂| 欧美日韩在线直播| www.欧美精品一二区| 精品在线你懂的| 亚洲第一主播视频| 亚洲三级理论片| 国产色爱av资源综合区| 日韩一级免费观看| 欧美视频完全免费看| 99re视频这里只有精品| 国产乱码精品一品二品| 视频一区欧美日韩| 亚洲一区日韩精品中文字幕| 最新国产の精品合集bt伙计| 国产女人18水真多18精品一级做 | 日本不卡在线视频| 亚洲自拍另类综合| 综合欧美一区二区三区| 中文字幕精品一区二区三区精品| 精品国产三级电影在线观看| 日韩欧美国产wwwww| 91精品国产91热久久久做人人| 欧美三级蜜桃2在线观看| 一本久久精品一区二区| 99久久精品免费精品国产| 国产suv精品一区二区三区| 国产精品一卡二卡在线观看| 韩国毛片一区二区三区| 美脚の诱脚舐め脚责91| 美女一区二区三区在线观看| 美女网站色91| 精品一区二区三区视频在线观看| 免费在线观看视频一区| 秋霞影院一区二区| 老司机精品视频在线| 久久99久国产精品黄毛片色诱| 日韩成人伦理电影在线观看| 青椒成人免费视频| 国内精品伊人久久久久av一坑| 韩国午夜理伦三级不卡影院| 国产精品亚洲第一| 成人黄色网址在线观看| 91浏览器在线视频| 欧美日韩一区小说| 日韩午夜三级在线| 久久久精品国产免大香伊| 国产日产欧美精品一区二区三区| 国产欧美日韩视频在线观看| 自拍视频在线观看一区二区| 一区二区三区.www| 天天色天天爱天天射综合| 麻豆精品一二三| 国产传媒一区在线| 99精品国产热久久91蜜凸| 欧美性受极品xxxx喷水| 欧美一区二区三区白人| 精品电影一区二区| 国产精品久久久久久一区二区三区| 亚洲视频免费观看| 青青草原综合久久大伊人精品| 国产精品自拍毛片| 在线免费观看成人短视频| 欧美精品xxxxbbbb| 久久九九99视频| 一区二区三区在线视频观看| 青青青伊人色综合久久| 大美女一区二区三区| 欧美日韩的一区二区| 久久精品一区二区三区不卡| 一区二区三区四区视频精品免费 | 图片区小说区国产精品视频| 久久成人麻豆午夜电影| 91丝袜国产在线播放| 欧美xxxxxxxx| 亚洲一区二区三区中文字幕| 国内精品视频666| 欧美探花视频资源| 久久久青草青青国产亚洲免观| 亚洲欧美激情一区二区| 国产一区在线观看视频| 欧美特级限制片免费在线观看| 国产丝袜美腿一区二区三区| 午夜精品一区二区三区免费视频| 国产精品18久久久久久久网站| 一本一本大道香蕉久在线精品| 日韩精品综合一本久道在线视频| 亚洲人妖av一区二区| 国产一区激情在线| 911精品国产一区二区在线| 国产精品福利一区| 国产伦精品一区二区三区免费 | 日韩成人av影视| 91丨九色丨国产丨porny| www国产精品av| 午夜av一区二区| 色偷偷成人一区二区三区91| 国产欧美一区二区三区沐欲| 日本 国产 欧美色综合| 欧美色涩在线第一页| 国产精品成人免费在线| 国产精品一二三在| 26uuu精品一区二区在线观看| 日韩和欧美一区二区| 欧美亚洲动漫精品| 亚洲人精品午夜| 99精品国产视频| 亚洲欧洲无码一区二区三区| 国产剧情在线观看一区二区 | 国产欧美综合在线观看第十页| 日本伊人色综合网| 欧美日韩免费一区二区三区| 亚洲女同女同女同女同女同69| 国产91精品在线观看| 欧美成人一区二区三区片免费 | 91欧美激情一区二区三区成人| 欧美国产一区二区在线观看| 国产在线精品一区二区三区不卡| 欧美一区二区二区| 日本伊人精品一区二区三区观看方式| 精品视频一区二区不卡| 亚洲一区二区三区激情| 欧美性欧美巨大黑白大战| 一区二区三区在线视频观看| 日本道免费精品一区二区三区| 亚洲久本草在线中文字幕| 91网上在线视频| 亚洲成人先锋电影| 欧美一三区三区四区免费在线看 | 国产精品毛片大码女人| 成人精品免费网站| 国产精品家庭影院| av毛片久久久久**hd| 亚洲免费观看在线视频| 色菇凉天天综合网| 日韩精品一二三四| 制服.丝袜.亚洲.中文.综合| 免费的成人av| 国产亚洲一二三区| 精品成人私密视频| 国产91在线观看| 一片黄亚洲嫩模| 在线观看91精品国产麻豆| 亚洲国产欧美日韩另类综合| 在线看一区二区| 日韩精品91亚洲二区在线观看 | 久久综合国产精品| 高清国产一区二区| 亚洲视频在线观看一区| 欧美三片在线视频观看| 精品一区二区三区在线观看 | 国v精品久久久网| 亚洲精品视频在线看| 在线不卡的av| 高清shemale亚洲人妖| 亚洲欧美激情小说另类| 日韩欧美高清在线| 成人精品亚洲人成在线| 日韩中文字幕一区二区三区| 2021国产精品久久精品|