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

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

Perform cumulative operation on the arguments.

Definition at line 1075 of file C-real-double.c.

§ C◼real◼double◼prod

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

Perform cumulative operation on the arguments.

Definition at line 1055 of file C-real-double.c.

§ C◼real◼double◼sub

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

Perform cumulative operation on the arguments.

Definition at line 1035 of file C-real-double.c.

§ C◼real◼double◼sum

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

Perform cumulative operation on the arguments.

Definition at line 1015 of file C-real-double.c.

Function Documentation

§ C◼real◼double◼divv()

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

Perform cumulative operation on array arr of length n.

Definition at line 1064 of file C-real-double.c.

1064  {
1065 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1066  C◼real◼double ret = arr[0];
1067  for (__size i = 1; i < n; ++i)
1068  ret C◼snippet◼sum◼divOp arr[i];
1069  return ret;
1070 }
double C◼real◼double
#define C◼snippet◼sum◼divOp
Definition: C-snippet-sum.c:53

§ C◼real◼double◼minus()

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

Return the negation of x.

Definition at line 1083 of file C-real-double.c.

1083  {
1084 #line 49 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1085  return -x;
1086 }

§ C◼real◼double◼prodv()

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

Perform cumulative operation on array arr of length n.

Definition at line 1044 of file C-real-double.c.

1044  {
1045 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1046  C◼real◼double ret = arr[0];
1047  for (__size i = 1; i < n; ++i)
1048  ret C◼snippet◼sum◼prodOp arr[i];
1049  return ret;
1050 }
#define C◼snippet◼sum◼prodOp
Definition: C-snippet-sum.c:52
double C◼real◼double

§ C◼real◼double◼recip()

C◼real◼double C◼real◼double◼recip ( C◼real◼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 1096 of file C-real-double.c.

1096  {
1097 #line 61 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1098  return 1.0f/x;
1099 }

§ C◼real◼double◼square()

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

Return the square of x.

Definition at line 1105 of file C-real-double.c.

References C◼real◼double◼_MODULE_CON.

1105  {
1106 #line 69 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1107  return x*x;
1108 }

§ C◼real◼double◼subv()

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

Perform cumulative operation on array arr of length n.

Definition at line 1024 of file C-real-double.c.

1024  {
1025 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1026  C◼real◼double ret = arr[0];
1027  for (__size i = 1; i < n; ++i)
1028  ret C◼snippet◼sum◼subOp arr[i];
1029  return ret;
1030 }
#define C◼snippet◼sum◼subOp
Definition: C-snippet-sum.c:51
double C◼real◼double

§ C◼real◼double◼sumv()

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

Perform cumulative operation on array arr of length n.

Definition at line 1004 of file C-real-double.c.

1004  {
1005 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1006  C◼real◼double ret = arr[0];
1007  for (__size i = 1; i < n; ++i)
1008  ret C◼snippet◼sum◼sumOp arr[i];
1009  return ret;
1010 }
double C◼real◼double
#define C◼snippet◼sum◼sumOp
Definition: C-snippet-sum.c:50