Patch suggested by Alessio Cacchiatori at
https://sourceforge.net/p/ngspice/discussion/127605/thread/7a2655c86f/
This commit is contained in:
parent
4ebf4901b9
commit
7c57c9adbd
|
|
@ -599,8 +599,8 @@ CMat* cremoverow(CMat* A, int r) {
|
||||||
}
|
}
|
||||||
CMat* cremovecol(CMat* A, int c) {
|
CMat* cremovecol(CMat* A, int c) {
|
||||||
CMat* B = newcmatnoinit(A->row, A->col - 1);
|
CMat* B = newcmatnoinit(A->row, A->col - 1);
|
||||||
int coldest = 0;
|
|
||||||
for (int i = 0; i < A->row; i++) {
|
for (int i = 0; i < A->row; i++) {
|
||||||
|
int coldest = 0;
|
||||||
for (int j = 0; j < A->col; j++) {
|
for (int j = 0; j < A->col; j++) {
|
||||||
if (j != c) {
|
if (j != c) {
|
||||||
B->d[i][coldest] = A->d[i][j];
|
B->d[i][coldest] = A->d[i][j];
|
||||||
|
|
@ -624,8 +624,8 @@ void cremoverow2(CMat* A, CMat* B, int r) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
void cremovecol2(CMat* A, CMat* B, int c) {
|
void cremovecol2(CMat* A, CMat* B, int c) {
|
||||||
int coldest = 0;
|
|
||||||
for (int i = 0; i < A->row; i++) {
|
for (int i = 0; i < A->row; i++) {
|
||||||
|
int coldest = 0;
|
||||||
for (int j = 0; j < A->col; j++) {
|
for (int j = 0; j < A->col; j++) {
|
||||||
if (j != c) {
|
if (j != c) {
|
||||||
B->d[i][coldest] = A->d[i][j];
|
B->d[i][coldest] = A->d[i][j];
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue