gslcpp
Modern-C++ Wrapper for GSL
div.hpp
Go to the documentation of this file.
1 /// \file include/gslcpp/wrap/div.hpp
2 /// \copyright 2022 Thomas E. Vaughan, all rights reserved.
3 /// \brief Definition of gsl::w_div().
4 
5 #pragma once
6 #include "container.hpp" // w_vector
7 
8 namespace gsl {
9 
10 
11 /// Perform the logical operation `u = u/v` element by element.
12 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
13 /// @param u Pointer to matrix whose elements should be divided into.
14 /// @param v Pointer to matrix whose elements divide into.
15 /// @return TBD: GSL's documentation does not specify.
16 inline int w_div(w_vector<double> *u, w_vector<double const> *v) {
17  return gsl_vector_div(u, v);
18 }
19 
20 
21 /// Perform the logical operation `u = u/v` element by element.
22 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
23 /// @param u Pointer to matrix whose elements should be divided into.
24 /// @param v Pointer to matrix whose elements divide into.
25 /// @return TBD: GSL's documentation does not specify.
26 inline int w_div(w_vector<float> *u, w_vector<float const> *v) {
27  return gsl_vector_float_div(u, v);
28 }
29 
30 
31 /// Perform the logical operation `u = u/v` element by element.
32 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
33 /// @param u Pointer to matrix whose elements should be divided into.
34 /// @param v Pointer to matrix whose elements divide into.
35 /// @return TBD: GSL's documentation does not specify.
36 inline int w_div(w_vector<long double> *u, w_vector<long double const> *v) {
37  return gsl_vector_long_double_div(u, v);
38 }
39 
40 
41 /// Perform the logical operation `u = u/v` element by element.
42 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
43 /// @param u Pointer to matrix whose elements should be divided into.
44 /// @param v Pointer to matrix whose elements divide into.
45 /// @return TBD: GSL's documentation does not specify.
46 inline int w_div(w_vector<int> *u, w_vector<int const> *v) {
47  return gsl_vector_int_div(u, v);
48 }
49 
50 
51 /// Perform the logical operation `u = u/v` element by element.
52 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
53 /// @param u Pointer to matrix whose elements should be divided into.
54 /// @param v Pointer to matrix whose elements divide into.
55 /// @return TBD: GSL's documentation does not specify.
56 inline int w_div(w_vector<unsigned> *u, w_vector<unsigned const> *v) {
57  return gsl_vector_uint_div(u, v);
58 }
59 
60 
61 /// Perform the logical operation `u = u/v` element by element.
62 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
63 /// @param u Pointer to matrix whose elements should be divided into.
64 /// @param v Pointer to matrix whose elements divide into.
65 /// @return TBD: GSL's documentation does not specify.
66 inline int w_div(w_vector<long> *u, w_vector<long const> *v) {
67  return gsl_vector_long_div(u, v);
68 }
69 
70 
71 /// Perform the logical operation `u = u/v` element by element.
72 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
73 /// @param u Pointer to matrix whose elements should be divided into.
74 /// @param v Pointer to matrix whose elements divide into.
75 /// @return TBD: GSL's documentation does not specify.
76 inline int
77 w_div(w_vector<unsigned long> *u, w_vector<unsigned long const> *v) {
78  return gsl_vector_ulong_div(u, v);
79 }
80 
81 
82 /// Perform the logical operation `u = u/v` element by element.
83 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
84 /// @param u Pointer to matrix whose elements should be divided into.
85 /// @param v Pointer to matrix whose elements divide into.
86 /// @return TBD: GSL's documentation does not specify.
87 inline int w_div(w_vector<short> *u, w_vector<short const> *v) {
88  return gsl_vector_short_div(u, v);
89 }
90 
91 
92 /// Perform the logical operation `u = u/v` element by element.
93 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
94 /// @param u Pointer to matrix whose elements should be divided into.
95 /// @param v Pointer to matrix whose elements divide into.
96 /// @return TBD: GSL's documentation does not specify.
97 inline int
98 w_div(w_vector<unsigned short> *u, w_vector<unsigned short const> *v) {
99  return gsl_vector_ushort_div(u, v);
100 }
101 
102 
103 /// Perform the logical operation `u = u/v` element by element.
104 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
105 /// @param u Pointer to matrix whose elements should be divided into.
106 /// @param v Pointer to matrix whose elements divide into.
107 /// @return TBD: GSL's documentation does not specify.
108 inline int w_div(w_vector<char> *u, w_vector<char const> *v) {
109  return gsl_vector_char_div(u, v);
110 }
111 
112 
113 /// Perform the logical operation `u = u/v` element by element.
114 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
115 /// @param u Pointer to matrix whose elements should be divided into.
116 /// @param v Pointer to matrix whose elements divide into.
117 /// @return TBD: GSL's documentation does not specify.
118 inline int
119 w_div(w_vector<unsigned char> *u, w_vector<unsigned char const> *v) {
120  return gsl_vector_uchar_div(u, v);
121 }
122 
123 
124 /// Perform the logical operation `u = u/v` element by element.
125 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
126 /// @param u Pointer to matrix whose elements should be divided into.
127 /// @param v Pointer to matrix whose elements divide into.
128 /// @return TBD: GSL's documentation does not specify.
129 inline int
130 w_div(w_vector<complex<double>> *u, w_vector<complex<double> const> *v) {
131  return gsl_vector_complex_div(u, v);
132 }
133 
134 
135 /// Perform the logical operation `u = u/v` element by element.
136 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
137 /// @param u Pointer to matrix whose elements should be divided into.
138 /// @param v Pointer to matrix whose elements divide into.
139 /// @return TBD: GSL's documentation does not specify.
140 inline int
141 w_div(w_vector<complex<float>> *u, w_vector<complex<float> const> *v) {
142  return gsl_vector_complex_float_div(u, v);
143 }
144 
145 
146 /// Perform the logical operation `u = u/v` element by element.
147 /// https://www.gnu.org/software/gsl/doc/html/vectors.html#c.gsl_vector_div
148 /// @param u Pointer to matrix whose elements should be divided into.
149 /// @param v Pointer to matrix whose elements divide into.
150 /// @return TBD: GSL's documentation does not specify.
151 inline int
152 w_div(w_vector<complex<long double>> *u,
153  w_vector<complex<long double> const> *v) {
154  return gsl_vector_complex_long_double_div(u, v);
155 }
156 
157 
158 } // namespace gsl
159 
160 // EOF
gsl::w_div
int w_div(w_vector< char > *u, w_vector< char const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:108
gsl::w_div
int w_div(w_vector< unsigned short > *u, w_vector< unsigned short const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:98
gsl::w_div
int w_div(w_vector< unsigned long > *u, w_vector< unsigned long const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:77
gsl::w_div
int w_div(w_vector< double > *u, w_vector< double const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:16
gsl::w_div
int w_div(w_vector< unsigned char > *u, w_vector< unsigned char const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:119
gsl::w_div
int w_div(w_vector< float > *u, w_vector< float const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:26
gsl::w_div
int w_div(w_vector< complex< double >> *u, w_vector< complex< double > const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:130
gsl::w_div
int w_div(w_vector< unsigned > *u, w_vector< unsigned const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:56
gsl::w_div
int w_div(w_vector< int > *u, w_vector< int const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:46
gsl::w_div
int w_div(w_vector< complex< float >> *u, w_vector< complex< float > const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:141
gsl::w_div
int w_div(w_vector< short > *u, w_vector< short const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:87
gsl::w_div
int w_div(w_vector< long double > *u, w_vector< long double const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:36
gsl::w_div
int w_div(w_vector< long > *u, w_vector< long const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:66
gsl::w_div
int w_div(w_vector< complex< long double >> *u, w_vector< complex< long double > const > *v)
Perform the logical operation u = u/v element by element.
Definition: div.hpp:152
gsl
Namespace for C++-interface to GSL.
Definition: v-iface.hpp:51