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