smpfillup.c
来自「支持数字元件仿真的SPICE插件」· C语言 代码 · 共 35 行
C
35 行
/* * Copyright (c) 1985 Thomas L. Quarles */ /* * SMPfillup(matrix) * - fill up (not in) the matrix with zero entries * for debugging purposes - want to create a full * matrix just to be safe.... */ #include "prefix.h"#include "SMPdefs.h"#include <stdio.h>#include "SPerror.h"#include "suffix.h"RCSID("SMPfillup.c $Revision: 1.1 $ on $Date: 91/04/02 11:48:30 $")intSMPfillup(matrix) register SMPmatrix * matrix;{ register int i; register int j; register double *check; double * SMPmakeElt(); for (i=0;i<=matrix->SMPsize;i++) { for (j=1;j<=matrix->SMPsize;j++) { check = SMPmakeElt(matrix,i,j); if(check == NULL) return(E_NOMEM); } } return(OK);}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?