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

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

Perform cumulative operation on the arguments.

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

§ C◼complex◼ldouble◼prod

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

Perform cumulative operation on the arguments.

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

§ C◼complex◼ldouble◼sub

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

Perform cumulative operation on the arguments.

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

§ C◼complex◼ldouble◼sum

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

Perform cumulative operation on the arguments.

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

Function Documentation

§ C◼complex◼ldouble◼divv()

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

Perform cumulative operation on array arr of length n.

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

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

§ C◼complex◼ldouble◼minus()

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

Return the negation of x.

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

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

§ C◼complex◼ldouble◼prodv()

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

Perform cumulative operation on array arr of length n.

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

363  {
364 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
365  C◼complex◼ldouble 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
long double _Complex C◼complex◼ldouble

§ C◼complex◼ldouble◼recip()

C◼complex◼ldouble C◼complex◼ldouble◼recip ( C◼complex◼ldouble  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-ldouble.c.

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

§ C◼complex◼ldouble◼square()

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

Return the square of x.

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

References C◼complex◼ldouble◼_MODULE_CON.

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

§ C◼complex◼ldouble◼subv()

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

Perform cumulative operation on array arr of length n.

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

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

§ C◼complex◼ldouble◼sumv()

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

Perform cumulative operation on array arr of length n.

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

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