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

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

?? cddlib.c

?? CheckMate is a MATLAB-based tool for modeling, simulating and investigating properties of hybrid dyn
?? C
字號:
/* cddlib.c: cdd library  (library version of cdd)   written by Komei Fukuda, fukuda@ifor.math.ethz.ch   Version 0.94b, Aug. 25, 2005   Standard ftp site: ftp.ifor.math.ethz.ch, Directory: pub/fukuda/cdd*//* cdd : C-Implementation of the double description method for   computing all vertices and extreme rays of the polyhedron    P= {x :  b - A x >= 0}.   Please read COPYING (GNU General Public Licence) and   the manual cddlibman.tex for detail.*//*  This program is free software; you can redistribute it and/or modify    it under the terms of the GNU General Public License as published by    the Free Software Foundation; either version 2 of the License, or    (at your option) any later version.    This program 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 General Public License for more details.    You should have received a copy of the GNU General Public License    along with this program; if not, write to the Free Software    Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.*//* The first version C0.21 was created on November 10,1993    with Dave Gillespie's p2c translator    from the Pascal program pdd.p written by Komei Fukuda. */#include "setoper.h"   /* set operation library header (Ver. June 1, 2000 or later) */#include "cdd.h"#include <stdio.h>#include <stdlib.h>#include <time.h>#include <math.h>#include <string.h>/* Global Variables */dd_boolean dd_debug               =dd_FALSE;dd_boolean dd_log                 =dd_FALSE;/* GLOBAL CONSTANTS and STATICS VARIABLES (to be set by dd_set_global_constants() */mytype dd_zero;mytype dd_one;mytype dd_purezero;mytype dd_minuszero;mytype dd_minusone;time_t dd_statStartTime; /* cddlib starting time */long dd_statBApivots;  /* basis finding pivots */long dd_statCCpivots;  /* criss-cross pivots */long dd_statDS1pivots; /* phase 1 pivots */long dd_statDS2pivots; /* phase 2 pivots */long dd_statACpivots;  /* anticycling (cc) pivots */#ifdef GMPRATIONALlong dd_statBSpivots;  /* basis status checking pivots */#endifdd_LPSolverType dd_choiceLPSolverDefault;  /* Default LP solver Algorithm */dd_LPSolverType dd_choiceRedcheckAlgorithm;  /* Redundancy Checking Algorithm */dd_boolean dd_choiceLexicoPivotQ;    /* whether to use the lexicographic pivot *//* #include <profile.h>    THINK C PROFILER *//* #include <console.h>    THINK C PROFILER */void dd_DDInit(dd_ConePtr cone){  cone->Error=dd_NoError;  cone->CompStatus=dd_InProgress;  cone->RayCount = 0;  cone->TotalRayCount = 0;  cone->FeasibleRayCount = 0;  cone->WeaklyFeasibleRayCount = 0;  cone->EdgeCount=0; /* active edge count */  cone->TotalEdgeCount=0; /* active edge count */  dd_SetInequalitySets(cone);  dd_ComputeRowOrderVector(cone);  cone->RecomputeRowOrder=dd_FALSE;}void dd_DDMain(dd_ConePtr cone){  dd_rowrange hh, itemp, otemp;  dd_boolean locallog=dd_log; /* if dd_log=dd_FALSE, no log will be written.  */  if (cone->d<=0){    cone->Iteration=cone->m;    cone->FeasibleRayCount=0;    cone->CompStatus=dd_AllFound;    goto _L99;  }  if (locallog) {     fprintf(stderr,"(Initially added rows ) = ");     set_fwrite(stderr,cone->InitialHalfspaces);  }  while (cone->Iteration <= cone->m) {    dd_SelectNextHalfspace(cone, cone->WeaklyAddedHalfspaces, &hh);    if (set_member(hh,cone->NonequalitySet)){  /* Skip the row hh */      if (dd_debug) {        fprintf(stderr,"*The row # %3ld should be inactive and thus skipped.\n", hh);      }      set_addelem(cone->WeaklyAddedHalfspaces, hh);    } else {      if (cone->PreOrderedRun)        dd_AddNewHalfspace2(cone, hh);      else{        dd_AddNewHalfspace1(cone, hh);      }      set_addelem(cone->AddedHalfspaces, hh);      set_addelem(cone->WeaklyAddedHalfspaces, hh);    }    if (!cone->PreOrderedRun){      for (itemp=1; cone->OrderVector[itemp]!=hh; itemp++);        otemp=cone->OrderVector[cone->Iteration];      cone->OrderVector[cone->Iteration]=hh;        /* store the dynamic ordering in ordervec */      cone->OrderVector[itemp]=otemp;        /* store the dynamic ordering in ordervec */    }    if (locallog){      fprintf(stderr,"(Iter, Row, #Total, #Curr, #Feas)= %5ld %5ld %9ld %6ld %6ld\n",        cone->Iteration, hh, cone->TotalRayCount, cone->RayCount,        cone->FeasibleRayCount);    }    if (cone->CompStatus==dd_AllFound||cone->CompStatus==dd_RegionEmpty) {      set_addelem(cone->AddedHalfspaces, hh);      goto _L99;    }    (cone->Iteration)++;  }  _L99:;  if (cone->d<=0 || cone->newcol[1]==0){ /* fixing the number of output */     cone->parent->n=cone->LinearityDim + cone->FeasibleRayCount -1;     cone->parent->ldim=cone->LinearityDim - 1;  } else {    cone->parent->n=cone->LinearityDim + cone->FeasibleRayCount;    cone->parent->ldim=cone->LinearityDim;  }}void dd_InitialDataSetup(dd_ConePtr cone){  long j, r;  dd_rowset ZSet;  static dd_Arow Vector1,Vector2;  static dd_colrange last_d=0;  if (last_d < cone->d){    if (last_d>0) {    for (j=0; j<last_d; j++){      dd_init(Vector1[j]);      dd_init(Vector2[j]);    }    free(Vector1); free(Vector2);    }    Vector1=(mytype*)calloc(cone->d,sizeof(mytype));    Vector2=(mytype*)calloc(cone->d,sizeof(mytype));    for (j=0; j<cone->d; j++){      dd_init(Vector1[j]);      dd_init(Vector2[j]);    }    last_d=cone->d;  }  cone->RecomputeRowOrder=dd_FALSE;  cone->ArtificialRay = NULL;  cone->FirstRay = NULL;  cone->LastRay = NULL;  set_initialize(&ZSet,cone->m);  dd_AddArtificialRay(cone);  set_copy(cone->AddedHalfspaces, cone->InitialHalfspaces);  set_copy(cone->WeaklyAddedHalfspaces, cone->InitialHalfspaces);  dd_UpdateRowOrderVector(cone, cone->InitialHalfspaces);  for (r = 1; r <= cone->d; r++) {    for (j = 0; j < cone->d; j++){      dd_set(Vector1[j], cone->B[j][r-1]);      dd_neg(Vector2[j], cone->B[j][r-1]);    }    dd_Normalize(cone->d, Vector1);    dd_Normalize(cone->d, Vector2);    dd_ZeroIndexSet(cone->m, cone->d, cone->A, Vector1, ZSet);    if (set_subset(cone->EqualitySet, ZSet)){      if (dd_debug) {        fprintf(stderr,"add an initial ray with zero set:");        set_fwrite(stderr,ZSet);      }      dd_AddRay(cone, Vector1);      if (cone->InitialRayIndex[r]==0) {        dd_AddRay(cone, Vector2);        if (dd_debug) {          fprintf(stderr,"and add its negative also.\n");        }      }    }  }  dd_CreateInitialEdges(cone);  cone->Iteration = cone->d + 1;  if (cone->Iteration > cone->m) cone->CompStatus=dd_AllFound; /* 0.94b  */  set_free(ZSet);}dd_boolean dd_CheckEmptiness(dd_PolyhedraPtr poly, dd_ErrorType *err){  dd_rowset R, S;  dd_MatrixPtr M=NULL;  dd_boolean answer=dd_FALSE;  *err=dd_NoError;  if (poly->representation==dd_Inequality){	M=dd_CopyInequalities(poly);	set_initialize(&R, M->rowsize);	set_initialize(&S, M->rowsize);	if (!dd_ExistsRestrictedFace(M, R, S, err)){	  poly->child->CompStatus=dd_AllFound;	  poly->IsEmpty=dd_TRUE;	  poly->n=0;	  answer=dd_TRUE;	}	set_free(R);	set_free(S);	dd_FreeMatrix(M);  } else if (poly->representation==dd_Generator && poly->m<=0){	*err=dd_EmptyVrepresentation;	poly->IsEmpty=dd_TRUE;	poly->child->CompStatus=dd_AllFound;	answer=dd_TRUE;	poly->child->Error=*err;    }    return answer;}dd_boolean dd_DoubleDescription(dd_PolyhedraPtr poly, dd_ErrorType *err){  dd_ConePtr cone=NULL;  dd_boolean found=dd_FALSE;  *err=dd_NoError;  if (poly!=NULL && (poly->child==NULL || poly->child->CompStatus!=dd_AllFound)){    cone=dd_ConeDataLoad(poly);    /* create a cone associated with poly by homogenization */    time(&cone->starttime);    dd_DDInit(cone);    if (poly->representation==dd_Generator && poly->m<=0){       *err=dd_EmptyVrepresentation;       cone->Error=*err;	   goto _L99;	}	/* Check emptiness of the polyhedron */	dd_CheckEmptiness(poly,err);    if (cone->CompStatus!=dd_AllFound){	  dd_FindInitialRays(cone, &found);	  if (found) {	    dd_InitialDataSetup(cone);	    if (cone->CompStatus==dd_AllFound) goto _L99;	    dd_DDMain(cone);	    if (cone->FeasibleRayCount!=cone->RayCount) *err=dd_NumericallyInconsistent; /* cddlib-093d */	  }	}    time(&cone->endtime);  }    _L99: ;  return found;}dd_boolean dd_DoubleDescription2(dd_PolyhedraPtr poly, dd_RowOrderType horder, dd_ErrorType *err){  dd_ConePtr cone=NULL;  dd_boolean found=dd_FALSE;  *err=dd_NoError;  if (poly!=NULL && (poly->child==NULL || poly->child->CompStatus!=dd_AllFound)){    cone=dd_ConeDataLoad(poly);    /* create a cone associated with poly by homogenization */	cone->HalfspaceOrder=horder;  /* set the row order */    time(&cone->starttime);    dd_DDInit(cone);    if (poly->representation==dd_Generator && poly->m<=0){       *err=dd_EmptyVrepresentation;       cone->Error=*err;	   goto _L99;	}	/* Check emptiness of the polyhedron */	dd_CheckEmptiness(poly,err);    if (cone->CompStatus!=dd_AllFound){	  dd_FindInitialRays(cone, &found);	  if (found) {	    dd_InitialDataSetup(cone);	    if (cone->CompStatus==dd_AllFound) goto _L99;	    dd_DDMain(cone);	    if (cone->FeasibleRayCount!=cone->RayCount) *err=dd_NumericallyInconsistent; /* cddlib-093d */	  }	}    time(&cone->endtime);  }    _L99: ;  return found;}dd_boolean dd_DDInputAppend(dd_PolyhedraPtr *poly, dd_MatrixPtr M,  dd_ErrorType *err){  /* This is imcomplete.  It simply solves the problem from scratch.  */  dd_boolean found;  dd_ErrorType error;  if ((*poly)->child!=NULL) dd_FreeDDMemory(*poly);  dd_AppendMatrix2Poly(poly, M);  (*poly)->representation=dd_Inequality;  found=dd_DoubleDescription(*poly, &error);  *err=error;  return found;}dd_boolean dd_DDFile2File(char *ifile, char *ofile, dd_ErrorType *err){  /* The representation conversion from an input file to an outfile.  */  /* modified by D. Avis to allow stdin/stdout */  dd_boolean found=dd_TRUE;  FILE *reading=NULL,*writing=NULL;  dd_PolyhedraPtr poly;  dd_MatrixPtr M, A, G;  if (strcmp(ifile,"**stdin") == 0 )     reading = stdin;  else if ( ( reading = fopen(ifile, "r") )!= NULL) {    fprintf(stderr,"input file %s is open\n", ifile);   }  else{    fprintf(stderr,"The input file %s not found\n",ifile);    found=dd_FALSE;    *err=dd_IFileNotFound;    goto _L99;  }  if (found){    if (strcmp(ofile,"**stdout") == 0 )      writing = stdout;    else if ( (writing = fopen(ofile, "w") ) != NULL){      fprintf(stderr,"output file %s is open\n",ofile);      found=dd_TRUE;    } else {      fprintf(stderr,"The output file %s cannot be opened\n",ofile);      found=dd_FALSE;      *err=dd_OFileNotOpen;      goto _L99;    }  }  M=dd_PolyFile2Matrix(reading, err);  if (*err!=dd_NoError){    goto _L99;  } poly=dd_DDMatrix2Poly(M, err);  /* compute the second representation */ dd_FreeMatrix(M);  if (*err==dd_NoError) {    dd_WriteRunningMode(writing, poly);    A=dd_CopyInequalities(poly);    G=dd_CopyGenerators(poly);    if (poly->representation==dd_Inequality) {      dd_WriteMatrix(writing,G);     } else {      dd_WriteMatrix(writing,A);    }    dd_FreePolyhedra(poly);    dd_FreeMatrix(A);    dd_FreeMatrix(G);  } _L99: ;  if (*err!=dd_NoError) dd_WriteErrorMessages(stderr,*err);  if (reading!=NULL) fclose(reading);  if (writing!=NULL) fclose(writing);  return found;}/* end of cddlib.c */

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲乱码国产乱码精品精98午夜| 91热门视频在线观看| 欧美日韩一区视频| 一区二区三区毛片| 欧美伊人久久久久久久久影院| 一区二区在线观看免费视频播放 | 久久99国产乱子伦精品免费| 欧美tk丨vk视频| 韩国精品在线观看| 国产91精品欧美| 欧美日本在线一区| 在线观看亚洲专区| 一本大道av一区二区在线播放| 国产在线一区观看| 亚洲自拍偷拍图区| 日韩理论片中文av| 91精品国产高清一区二区三区| 欧美嫩在线观看| 久久女同性恋中文字幕| 亚洲人成在线播放网站岛国| 91国内精品野花午夜精品| 夜夜精品视频一区二区| 欧美日韩国产影片| 欧美久久久久久久久| 久久精品人人做人人爽97| 亚洲综合图片区| 国产精品高潮呻吟久久| 麻豆精品一区二区综合av| 五月激情综合婷婷| 在线观看av一区二区| 欧美系列在线观看| 欧美喷水一区二区| 久久99精品国产麻豆不卡| 国产一区二区毛片| 成人动漫视频在线| 久久色中文字幕| 久久电影网电视剧免费观看| 日韩一区二区三区在线| 亚洲国产一区二区在线播放| 欧美在线观看18| 亚洲国产精品一区二区www在线 | 欧美日本一道本在线视频| 精品黑人一区二区三区久久 | 日韩女优毛片在线| 日韩专区在线视频| 欧美一区二区精品在线| 午夜精品一区二区三区三上悠亚| 欧美性受xxxx| 五月激情综合网| 欧美午夜寂寞影院| 另类欧美日韩国产在线| 久久亚洲欧美国产精品乐播| 丰满少妇久久久久久久| 综合电影一区二区三区| 精品婷婷伊人一区三区三| 青青草伊人久久| 国产精品的网站| 成人美女视频在线观看| 欧美一级日韩一级| 高清beeg欧美| 狠狠色丁香久久婷婷综合_中| 国产精品人妖ts系列视频| 91.麻豆视频| 不卡欧美aaaaa| 国产麻豆精品在线| 麻豆91在线看| 99re免费视频精品全部| 中文字幕日韩av资源站| 精品国产一区二区三区不卡| 日本乱人伦aⅴ精品| 国产超碰在线一区| 日本不卡中文字幕| 亚洲一区二区三区在线看| 欧美成人bangbros| 欧美酷刑日本凌虐凌虐| 欧美日韩国产美| 日日夜夜免费精品| 国产精品久久久久一区二区三区共 | 成人午夜激情在线| 激情综合网最新| 天天操天天综合网| 亚洲国产一区二区a毛片| 亚洲综合色区另类av| 亚洲女同ⅹxx女同tv| 欧美日本一区二区三区四区| 国产精品一区久久久久| 精品一区在线看| 国产精品18久久久| 国产精品一区免费视频| eeuss鲁一区二区三区| 99久久国产综合色|国产精品| 成人黄色综合网站| 欧美日韩亚洲不卡| 精品美女一区二区三区| 国产+成+人+亚洲欧洲自线| 久久精品国产77777蜜臀| 国产一区二区在线观看免费| a美女胸又www黄视频久久| 美女性感视频久久| 国产欧美在线观看一区| 日韩你懂的在线观看| 欧美va天堂va视频va在线| 国产亚洲美州欧州综合国| 国产欧美一区二区三区在线看蜜臀| 久久九九全国免费| 亚洲色欲色欲www| 亚洲在线观看免费视频| 成人精品国产福利| 精品99999| 蜜桃av一区二区在线观看| 久久精品一区二区三区不卡| 久久99国内精品| 久久亚洲私人国产精品va媚药| 日韩在线一区二区三区| 欧美电视剧在线看免费| 日韩vs国产vs欧美| 同产精品九九九| 欧美一三区三区四区免费在线看 | 久久99精品久久久久久国产越南 | 亚洲国产成人av好男人在线观看| 欧美丝袜第三区| 玖玖九九国产精品| 日韩一二三四区| 成熟亚洲日本毛茸茸凸凹| 亚洲裸体在线观看| 91麻豆精品国产91久久久更新时间| 奇米四色…亚洲| 国产精品国产三级国产aⅴ无密码| 91香蕉视频黄| 国产自产v一区二区三区c| 亚洲视频电影在线| 精品国产一区二区精华| 91成人在线免费观看| 精品一区二区三区免费毛片爱| 亚洲欧洲成人av每日更新| 欧美福利一区二区| 91国产丝袜在线播放| 成人免费高清视频在线观看| 视频一区免费在线观看| 国产精品成人免费精品自在线观看| 欧美一区二区三区不卡| 在线国产亚洲欧美| 成人免费观看视频| 国产精品一级在线| 日本一区中文字幕| 亚洲人成影院在线观看| 国产精品美女www爽爽爽| 精品日本一线二线三线不卡| 精品视频色一区| 欧美亚洲高清一区二区三区不卡| 91丨porny丨国产| 成人性色生活片| 国产九色sp调教91| 欧美a一区二区| 婷婷亚洲久悠悠色悠在线播放 | 91最新地址在线播放| 18欧美亚洲精品| 日韩欧美电影一区| 99视频有精品| jlzzjlzz欧美大全| 精品一区二区三区免费视频| 一区二区不卡在线视频 午夜欧美不卡在 | 精品视频在线看| 日韩亚洲国产中文字幕欧美| 国产嫩草影院久久久久| 中文字幕一区二区三区精华液 | 亚洲成av人片在线| 亚洲一区二区五区| 亚洲一区二区影院| 亚洲大尺度视频在线观看| 成人欧美一区二区三区白人 | 中文子幕无线码一区tr| 国产午夜精品一区二区| 久久毛片高清国产| 国产日韩欧美a| 亚洲男同1069视频| 亚洲影院免费观看| 轻轻草成人在线| 国产精品自在在线| 高清国产一区二区三区| 色菇凉天天综合网| 欧美午夜视频网站| 2024国产精品| 亚洲成人tv网| www.亚洲色图.com| 日韩一区二区三区观看| 美腿丝袜亚洲三区| 黑人精品欧美一区二区蜜桃| 成人h动漫精品一区二| 欧美xxxx老人做受| 午夜日韩在线观看| 91久久久免费一区二区| 久久久久国产精品麻豆ai换脸| 亚洲电影一级片| 9人人澡人人爽人人精品| 精品国产乱码久久久久久牛牛 | 欧美日韩免费电影| 中文字幕国产一区| 国产成人av电影在线观看| 欧美卡1卡2卡|