62 #define touchstone_crlf "\n"
64 #define touchstone_crlf "\r\n"
78 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
102 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
112 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
113 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
114 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
115 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
129 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
130 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
131 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
133 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
134 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
135 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
137 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
138 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
139 " %+." NR_DECS
"e" " %+." NR_DECS
"e"
159 int rs = S.getRows ();
161 for (
int r = 0;
r < rs;
r++) {
164 for (
int c = 0;
c < cs;
c++) {
165 if (
c > 1 && (
c & 3) == 0)
169 if ((
c > 1 && (
c & 3) == 3) || (
c == cs - 1))
182 char *
n, * vn, *
vd = NULL, * vf = NULL;
184 int r,
c, rs = -1, cs = -1,
s = 0;
187 for (v = data->getVariables (); v != NULL; v = (::vector *) v->
getNext ()) {
190 if (strstr (vn, name) == vn) {
202 if (!strcmp (vn,
"Fmin")) {
207 else if (!strcmp (vn,
"Sopt")) {
212 else if (!strcmp (vn,
"Rn")) {
219 if (rs >= 0 && cs >= 0 && vd != NULL) {
220 int ss = rs > cs ? rs : cs;
224 matvec * mv =
new matvec (
s, ss + 1, ss + 1);
227 for (v = data->getVariables ();
v; v = (::vector *) v->
getNext ()) {
229 if (strstr (vn, name) == vn) {
244 if (vf && !strcmp (v->
getName (), vf)) {
255 if (variable == NULL) {
279 fprintf (stderr,
"no such data variable `%s' found\n", variable);
qucs::vector get(int, int)
matrix real(matrix a)
Real part matrix.
matrix abs(matrix a)
Computes magnitude of each matrix element.
Global physical constants header file.
matrix imag(matrix a)
Imaginary part matrix.
void touchstone_print(void)
nr_complex_t log10(const nr_complex_t z)
Compute principal value of decimal logarithm of z.
Dense matrix class header file.
struct touchstone_data_t touchstone_data
#define deg(x)
Convert radian to degree.
void touchstone_print_noise(void)
void touchstone_find_data(dataset *data, const char *name)
qucs::dataset * qucs_data
strlist * getDependencies(void)
void touchstone_producer(const char *variable)
matrix arg(matrix a)
Computes the argument of each matrix element.
static char * isMatrixVector(char *, int &, int &)