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

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

Perform cumulative operation on the arguments.

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

§ C◼real◼ldouble◼prod

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

Perform cumulative operation on the arguments.

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

§ C◼real◼ldouble◼sub

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

Perform cumulative operation on the arguments.

Definition at line 995 of file C-real-ldouble.c.

§ C◼real◼ldouble◼sum

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

Perform cumulative operation on the arguments.

Definition at line 975 of file C-real-ldouble.c.

Function Documentation

§ C◼real◼ldouble◼divv()

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

Perform cumulative operation on array arr of length n.

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

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

§ C◼real◼ldouble◼minus()

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

Return the negation of x.

Definition at line 1043 of file C-real-ldouble.c.

1043  {
1044 #line 49 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1045  return -x;
1046 }

§ C◼real◼ldouble◼prodv()

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

Perform cumulative operation on array arr of length n.

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

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

§ C◼real◼ldouble◼recip()

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

1056  {
1057 #line 61 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1058  return 1.0f/x;
1059 }

§ C◼real◼ldouble◼square()

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

Return the square of x.

Definition at line 1065 of file C-real-ldouble.c.

References C◼real◼ldouble◼_MODULE_CON.

1065  {
1066 #line 69 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
1067  return x*x;
1068 }

§ C◼real◼ldouble◼subv()

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

Perform cumulative operation on array arr of length n.

Definition at line 984 of file C-real-ldouble.c.

984  {
985 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
986  C◼real◼ldouble ret = arr[0];
987  for (__size i = 1; i < n; ++i)
988  ret C◼snippet◼sum◼subOp arr[i];
989  return ret;
990 }
#define C◼snippet◼sum◼subOp
Definition: C-snippet-sum.c:51
C◼ldouble C◼real◼ldouble
Definition: C-math.c:402

§ C◼real◼ldouble◼sumv()

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

Perform cumulative operation on array arr of length n.

Definition at line 964 of file C-real-ldouble.c.

964  {
965 #line 31 "/home/gustedt/build/cmod/C/C-snippet-sum.X"
966  C◼real◼ldouble ret = arr[0];
967  for (__size i = 1; i < n; ++i)
968  ret C◼snippet◼sum◼sumOp arr[i];
969  return ret;
970 }
C◼ldouble C◼real◼ldouble
Definition: C-math.c:402
#define C◼snippet◼sum◼sumOp
Definition: C-snippet-sum.c:50