Modular C
C◼complex◼double◼sumprod: symbols inserted from C◼snippet◼sum.
+ Collaboration diagram for C◼complex◼double◼sumprod: symbols inserted from C◼snippet◼sum.:
C◼complex◼double C◼complex◼double◼sumv (__size n, C◼complex◼double volatile arr[n])
 Perform cumulative operation on array arr of length n. More...
 
C◼complex◼double C◼complex◼double◼subv (__size n, C◼complex◼double volatile arr[n])
 Perform cumulative operation on array arr of length n. More...
 
C◼complex◼double C◼complex◼double◼prodv (__size n, C◼complex◼double volatile arr[n])
 Perform cumulative operation on array arr of length n. More...
 
C◼complex◼double C◼complex◼double◼divv (__size n, C◼complex◼double volatile arr[n])
 Perform cumulative operation on array arr of length n. More...
 
C◼complex◼double C◼complex◼double◼minus (C◼complex◼double x)
 Return the negation of x. More...
 
C◼complex◼double C◼complex◼double◼recip (C◼complex◼double x)
 Return the inverse of x. More...
 
C◼complex◼double C◼complex◼double◼square (C◼complex◼double x)
 Return the square of x. More...
 
#define C◼complex◼double◼sum(...)   C◼complex◼double◼sumv(C◼snippet◼sum◼ALEN(C◼complex◼double, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼complex◼double, __VA_ARGS__))
 Perform cumulative operation on the arguments. More...
 
#define C◼complex◼double◼sub(...)   C◼complex◼double◼subv(C◼snippet◼sum◼ALEN(C◼complex◼double, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼complex◼double, __VA_ARGS__))
 Perform cumulative operation on the arguments. More...
 
#define C◼complex◼double◼prod(...)   C◼complex◼double◼prodv(C◼snippet◼sum◼ALEN(C◼complex◼double, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼complex◼double, __VA_ARGS__))
 Perform cumulative operation on the arguments. More...
 
#define C◼complex◼double◼div(...)   C◼complex◼double◼divv(C◼snippet◼sum◼ALEN(C◼complex◼double, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼complex◼double, __VA_ARGS__))
 Perform cumulative operation on the arguments. More...
 

Detailed Description

See also
C◼snippet◼sum snippet: identifiers inserted directly to an importer for details

This import does not fill any slots.

Macro Definition Documentation

§ C◼complex◼double◼div

#define C◼complex◼double◼div (   ...)    C◼complex◼double◼divv(C◼snippet◼sum◼ALEN(C◼complex◼double, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼complex◼double, __VA_ARGS__))

Perform cumulative operation on the arguments.

Definition at line 394 of file C-complex-double.c.

§ C◼complex◼double◼prod

#define C◼complex◼double◼prod (   ...)    C◼complex◼double◼prodv(C◼snippet◼sum◼ALEN(C◼complex◼double, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼complex◼double, __VA_ARGS__))

Perform cumulative operation on the arguments.

Definition at line 374 of file C-complex-double.c.

§ C◼complex◼double◼sub

#define C◼complex◼double◼sub (   ...)    C◼complex◼double◼subv(C◼snippet◼sum◼ALEN(C◼complex◼double, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼complex◼double, __VA_ARGS__))

Perform cumulative operation on the arguments.

Definition at line 354 of file C-complex-double.c.

§ C◼complex◼double◼sum

#define C◼complex◼double◼sum (   ...)    C◼complex◼double◼sumv(C◼snippet◼sum◼ALEN(C◼complex◼double, __VA_ARGS__), C◼snippet◼sum◼ARRAY(C◼complex◼double, __VA_ARGS__))

Perform cumulative operation on the arguments.

Definition at line 334 of file C-complex-double.c.

Function Documentation

§ C◼complex◼double◼divv()

C◼complex◼double C◼complex◼double◼divv ( __size  n,
C◼complex◼double volatile  arr[n] 
)
inline

Perform cumulative operation on array arr of length n.

Definition at line 383 of file C-complex-double.c.

383  {
384 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
385  C◼complex◼double ret = arr[0];
386  for (__size i = 1; i < n; ++i)
387  ret C◼snippet◼sum◼divOp arr[i];
388  return ret;
389 }
#define C◼snippet◼sum◼divOp
Definition: C-snippet-sum.c:53
double _Complex C◼complex◼double

§ C◼complex◼double◼minus()

C◼complex◼double C◼complex◼double◼minus ( C◼complex◼double  x)
inline

Return the negation of x.

Definition at line 402 of file C-complex-double.c.

402  {
403 #line 49 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
404  return -x;
405 }

§ C◼complex◼double◼prodv()

C◼complex◼double C◼complex◼double◼prodv ( __size  n,
C◼complex◼double volatile  arr[n] 
)
inline

Perform cumulative operation on array arr of length n.

Definition at line 363 of file C-complex-double.c.

363  {
364 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
365  C◼complex◼double ret = arr[0];
366  for (__size i = 1; i < n; ++i)
367  ret C◼snippet◼sum◼prodOp arr[i];
368  return ret;
369 }
#define C◼snippet◼sum◼prodOp
Definition: C-snippet-sum.c:52
double _Complex C◼complex◼double

§ C◼complex◼double◼recip()

C◼complex◼double C◼complex◼double◼recip ( C◼complex◼double  x)
inline

Return the inverse of x.

This computes floating point inverse of x, but then returns a value of type T. This makes only sense for floating point types, at the moment.

Definition at line 415 of file C-complex-double.c.

415  {
416 #line 61 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
417  return 1.0f/x;
418 }

§ C◼complex◼double◼square()

C◼complex◼double C◼complex◼double◼square ( C◼complex◼double  x)
inline

Return the square of x.

Definition at line 424 of file C-complex-double.c.

References C◼complex◼double◼_MODULE_CON.

424  {
425 #line 69 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
426  return x*x;
427 }

§ C◼complex◼double◼subv()

C◼complex◼double C◼complex◼double◼subv ( __size  n,
C◼complex◼double volatile  arr[n] 
)
inline

Perform cumulative operation on array arr of length n.

Definition at line 343 of file C-complex-double.c.

343  {
344 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
345  C◼complex◼double ret = arr[0];
346  for (__size i = 1; i < n; ++i)
347  ret C◼snippet◼sum◼subOp arr[i];
348  return ret;
349 }
#define C◼snippet◼sum◼subOp
Definition: C-snippet-sum.c:51
double _Complex C◼complex◼double

§ C◼complex◼double◼sumv()

C◼complex◼double C◼complex◼double◼sumv ( __size  n,
C◼complex◼double volatile  arr[n] 
)
inline

Perform cumulative operation on array arr of length n.

Definition at line 323 of file C-complex-double.c.

323  {
324 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
325  C◼complex◼double ret = arr[0];
326  for (__size i = 1; i < n; ++i)
327  ret C◼snippet◼sum◼sumOp arr[i];
328  return ret;
329 }
#define C◼snippet◼sum◼sumOp
Definition: C-snippet-sum.c:50
double _Complex C◼complex◼double