#include "stack-c.h"#include "../../elementaries_functions/includes/elementaries_functions.h"Include dependency graph for mspelm.c:

Go to the source code of this file.
Defines | |
| #define | CHAR(x) (cstk(x)) |
| #define | INT(x) (istk(x)) |
| #define | DOUBLE(x) ( stk(x)) |
| #define | CMPLX(x) (zstk(x)) |
Functions | |
| int C2F() | intmfull (integer *id) |
| int C2F() C2F() | intmspget (integer *id) |
| int C2F() | basout () |
| int C2F() C2F() | intmsparse (integer *id) |
| static int | wmspful (integer *ma, integer *na, double *ar, double *ai, integer *nela, integer *inda, double *rr, double *ri) |
| static int | dmspful (integer *ma, integer *na, double *a, integer *nela, integer *inda, double *r__) |
| int C2F() | dspt () |
| int C2F() | wspt () |
| int C2F() | unsfdcopy () |
| int C2F() | icopy () |
| int C2F() | error () |
| int C2F() | dset () |
| int C2F() | int2db () |
| int | empty (void) |
Variables | |
| static integer | c1 = 1 |
| static integer | c41 = 41 |
| static integer | c39 = 39 |
| static integer | c17 = 17 |
| static integer | c44 = 44 |
| static integer | c_n1 = -1 |
| static double | c_b46 = 0. |
| int C2F() basout | ( | ) |
| static int dmspful | ( | integer * | ma, | |
| integer * | na, | |||
| double * | a, | |||
| integer * | nela, | |||
| integer * | inda, | |||
| double * | r__ | |||
| ) | [static] |
Definition at line 382 of file mspelm.c.
References C2F, c_b46, and dset().
00383 { 00384 integer I1, I2; 00385 static integer I, j, k, ii, nj; 00386 00387 I1 = *ma * *na; 00388 C2F(dset)(&I1, &c_b46,rr, &c1); 00389 k = 0; 00390 I1 = *na; 00391 for (j = 1; j <= I1; ++j) { 00392 nj = inda[j] - inda[j-1]; 00393 if (nj > 0) { 00394 I2 = nj; 00395 for (ii = 1; ii <= I2; ++ii) { 00396 I = inda[*na + k + ii]; 00397 rr[I + (j - 1) * *ma -1 ] = a[k + ii -1]; 00398 } 00399 k += nj; 00400 } 00401 } 00402 return 0; 00403 }
Here is the call graph for this function:

| int C2F() dset | ( | ) |
| int C2F() dspt | ( | ) |
| int empty | ( | void | ) |
Definition at line 129 of file mspelm.c.
References CreateData, GetData(), GetRhsVar, int, ir, LhsVar, m1, m2, n1, n2, PutLhsVar, stk, and value.
00130 { 00131 int m,n;int k; 00132 int m1,n1,p1; 00133 int m2,n2,p2; 00134 int NZMAX=1;int jc=5;int ir; 00135 int *header;double *value; 00136 GetRhsVar(1,"d",&m1,&n1,&p1); 00137 GetRhsVar(2,"d",&m2,&n2,&p2); 00138 m= (int) *stk(p1); 00139 n= (int) *stk(p2); 00140 CreateData(3, (6+n+1)*sizeof(int)+sizeof(double)); 00141 header = (int *) GetData(3); value= (double *) header; 00142 header[0]=7; 00143 header[1]=m;header[2]=n;header[3]=0; 00144 header[4]=NZMAX;header[jc]=0; 00145 ir=jc+n+1; 00146 for (k=0; k<n; ++k) header[jc+k+1]=0; 00147 header[ir]=0; 00148 value[(5+header[2]+header[4])/2 + 1] = 0.0; 00149 LhsVar(1)=3; 00150 PutLhsVar(); 00151 return 1; 00152 }
Here is the call graph for this function:

| int C2F() error | ( | ) |
| int C2F() icopy | ( | ) |
Referenced by C2F(), copysmat(), cre_sparse_from_ptr_i(), creadbmat(), createlistvarfrom(), createvarfrom(), createvarfromptr(), crebmatvar(), cresmati(), cwritebmat(), mvfromto(), pmatj(), run(), smatj(), and stcreate().
Here is the caller graph for this function:

| int C2F() int2db | ( | ) |
Referenced by ConvertData(), createcvarfrom(), createlistcvarfrom(), createlistvarfrom(), and createvarfrom().
Here is the caller graph for this function:

| int C2F() unsfdcopy | ( | ) |
Referenced by copyobj(), CopyVarFromlistentry(), copyvarfromsciptr(), crematvar(), intcpass2(), mvfromto(), sci2var(), sciblk4(), and vcopyobj().
Here is the caller graph for this function:

| static int wmspful | ( | integer * | ma, | |
| integer * | na, | |||
| double * | ar, | |||
| double * | ai, | |||
| integer * | nela, | |||
| integer * | inda, | |||
| double * | rr, | |||
| double * | ri | |||
| ) | [static] |
Definition at line 405 of file mspelm.c.
References C2F, c_b46, and dset().
00406 { 00407 integer I1, I2; 00408 static integer I, j, k, ii, nj; 00409 00410 I1 = *ma * *na; 00411 C2F(dset)(&I1, &c_b46, rr, &c1); 00412 I1 = *ma * *na; 00413 C2F(dset)(&I1, &c_b46, ri, &c1); 00414 k = 0; 00415 I1 = *na; 00416 for (j = 1; j <= I1; ++j) { 00417 nj = inda[j] - inda[j-1]; 00418 if (nj > 0) { 00419 I2 = nj; 00420 for (ii = 1; ii <= I2; ++ii) { 00421 I = inda[*na + k + ii]; 00422 rr[I + (j - 1) * *ma -1] = ar[k + ii -1]; 00423 ri[I + (j - 1) * *ma -1] = ai[k + ii -1]; 00424 } 00425 k += nj; 00426 } 00427 } 00428 return 0; 00429 }
Here is the call graph for this function:

| int C2F() wspt | ( | ) |
double c_b46 = 0. [static] |
1.5.1