72 data = (nr_double_t *) malloc (
sizeof (nr_double_t) *
size);
76 memset (
data, 0,
sizeof (nr_double_t) * size);
81 assert (idx >= 0 && idx <
size &&
data != NULL);
87 assert (idx >= 0 && idx <
size &&
data != NULL);
97 data = (nr_double_t *) realloc (
data,
sizeof (nr_double_t) *
points);
99 memset (&
data[
size], 0,
sizeof (nr_double_t) * (points - size));
102 data = (nr_double_t *) malloc (
sizeof (nr_double_t) *
points);
103 memset (
data, 0,
sizeof (nr_double_t) * points);
112 if (
data == NULL ||
size == 0)
return (
char *)
"";
113 int len = 3 +
size - 1;
114 txt = (
char *) malloc (len);
116 for (
int i = 0;
i <
size;
i++) {
117 static char str[256];
118 sprintf (str,
"%g", (
double)
get (
i));
119 txt = (
char *) realloc (
txt, len += strlen (str));
121 if (
i != size - 1) strcat (
txt,
";");
131 nr_double_t * buf = (nr_double_t *) malloc (
sizeof (nr_double_t) *
size);
matrix real(matrix a)
Real part matrix.
void create(nr_double_t, nr_double_t, int)
nr_double_t getPropertyDouble(const char *)
qucs::vector logspace(nr_double_t, nr_double_t, int)
qucs::vector linspace(nr_double_t, nr_double_t, int)
Declaration sizeof(struct vcd_scope))
void create(nr_double_t, nr_double_t, int)
void set(int, nr_double_t)