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

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

Perform cumulative operation on the arguments.

Definition at line 395 of file C-complex-float.c.

§ C◼complex◼float◼prod

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

Perform cumulative operation on the arguments.

Definition at line 375 of file C-complex-float.c.

§ C◼complex◼float◼sub

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

Perform cumulative operation on the arguments.

Definition at line 355 of file C-complex-float.c.

§ C◼complex◼float◼sum

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

Perform cumulative operation on the arguments.

Definition at line 335 of file C-complex-float.c.

Function Documentation

§ C◼complex◼float◼divv()

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

Perform cumulative operation on array arr of length n.

Definition at line 384 of file C-complex-float.c.

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

§ C◼complex◼float◼minus()

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

Return the negation of x.

Definition at line 403 of file C-complex-float.c.

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

§ C◼complex◼float◼prodv()

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

Perform cumulative operation on array arr of length n.

Definition at line 364 of file C-complex-float.c.

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

§ C◼complex◼float◼recip()

C◼complex◼float C◼complex◼float◼recip ( C◼complex◼float  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 416 of file C-complex-float.c.

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

§ C◼complex◼float◼square()

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

Return the square of x.

Definition at line 425 of file C-complex-float.c.

References C◼complex◼float◼_MODULE_CON.

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

§ C◼complex◼float◼subv()

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

Perform cumulative operation on array arr of length n.

Definition at line 344 of file C-complex-float.c.

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

§ C◼complex◼float◼sumv()

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

Perform cumulative operation on array arr of length n.

Definition at line 324 of file C-complex-float.c.

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