@@ -17,118 +17,174 @@ function N_VMake_Serial(vec_length::Clong,v_data::Ptr{realtype})
17
17
ccall ((:N_VMake_Serial ,libsundials_nvecserial),N_Vector,(Clong,Ptr{realtype}),vec_length,v_data)
18
18
end
19
19
20
- function N_VCloneVectorArray_Serial (count:: Cint ,w:: N_Vector )
20
+ function __N_VCloneVectorArray_Serial (count:: Cint ,w:: N_Vector )
21
21
ccall ((:N_VCloneVectorArray_Serial ,libsundials_nvecserial),Ptr{N_Vector},(Cint,N_Vector),count,w)
22
22
end
23
23
24
- function N_VCloneVectorArrayEmpty_Serial (count:: Cint ,w:: N_Vector )
24
+ N_VCloneVectorArray_Serial (count,w) = __N_VCloneVectorArray_Serial (count,convert (N_Vector,w))
25
+
26
+ function __N_VCloneVectorArrayEmpty_Serial (count:: Cint ,w:: N_Vector )
25
27
ccall ((:N_VCloneVectorArrayEmpty_Serial ,libsundials_nvecserial),Ptr{N_Vector},(Cint,N_Vector),count,w)
26
28
end
27
29
30
+ N_VCloneVectorArrayEmpty_Serial (count,w) = __N_VCloneVectorArrayEmpty_Serial (count,convert (N_Vector,w))
31
+
28
32
function N_VDestroyVectorArray_Serial (vs:: Ptr{N_Vector} ,count:: Cint )
29
33
ccall ((:N_VDestroyVectorArray_Serial ,libsundials_nvecserial),Void,(Ptr{N_Vector},Cint),vs,count)
30
34
end
31
35
32
- function N_VPrint_Serial (v:: N_Vector )
36
+ function __N_VPrint_Serial (v:: N_Vector )
33
37
ccall ((:N_VPrint_Serial ,libsundials_nvecserial),Void,(N_Vector,),v)
34
38
end
35
39
36
- function N_VCloneEmpty_Serial (w:: N_Vector )
40
+ N_VPrint_Serial (v) = __N_VPrint_Serial (convert (N_Vector,v))
41
+
42
+ function __N_VCloneEmpty_Serial (w:: N_Vector )
37
43
ccall ((:N_VCloneEmpty_Serial ,libsundials_nvecserial),N_Vector,(N_Vector,),w)
38
44
end
39
45
40
- function N_VClone_Serial (w:: N_Vector )
46
+ N_VCloneEmpty_Serial (w) = __N_VCloneEmpty_Serial (convert (N_Vector,w))
47
+
48
+ function __N_VClone_Serial (w:: N_Vector )
41
49
ccall ((:N_VClone_Serial ,libsundials_nvecserial),N_Vector,(N_Vector,),w)
42
50
end
43
51
44
- function N_VDestroy_Serial (v:: N_Vector )
52
+ N_VClone_Serial (w) = __N_VClone_Serial (convert (N_Vector,w))
53
+
54
+ function __N_VDestroy_Serial (v:: N_Vector )
45
55
ccall ((:N_VDestroy_Serial ,libsundials_nvecserial),Void,(N_Vector,),v)
46
56
end
47
57
48
- function N_VSpace_Serial (v:: N_Vector ,lrw:: Ptr{Clong} ,liw:: Ptr{Clong} )
58
+ N_VDestroy_Serial (v) = __N_VDestroy_Serial (convert (N_Vector,v))
59
+
60
+ function __N_VSpace_Serial (v:: N_Vector ,lrw:: Ptr{Clong} ,liw:: Ptr{Clong} )
49
61
ccall ((:N_VSpace_Serial ,libsundials_nvecserial),Void,(N_Vector,Ptr{Clong},Ptr{Clong}),v,lrw,liw)
50
62
end
51
63
52
- function N_VGetArrayPointer_Serial (v:: N_Vector )
64
+ N_VSpace_Serial (v,lrw,liw) = __N_VSpace_Serial (convert (N_Vector,v),pointer (lrw),pointer (liw))
65
+
66
+ function __N_VGetArrayPointer_Serial (v:: N_Vector )
53
67
ccall ((:N_VGetArrayPointer_Serial ,libsundials_nvecserial),Ptr{realtype},(N_Vector,),v)
54
68
end
55
69
56
- function N_VSetArrayPointer_Serial (v_data:: Ptr{realtype} ,v:: N_Vector )
70
+ N_VGetArrayPointer_Serial (v) = __N_VGetArrayPointer_Serial (convert (N_Vector,v))
71
+
72
+ function __N_VSetArrayPointer_Serial (v_data:: Ptr{realtype} ,v:: N_Vector )
57
73
ccall ((:N_VSetArrayPointer_Serial ,libsundials_nvecserial),Void,(Ptr{realtype},N_Vector),v_data,v)
58
74
end
59
75
60
- function N_VLinearSum_Serial (a:: realtype ,x:: N_Vector ,b:: realtype ,y:: N_Vector ,z:: N_Vector )
76
+ N_VSetArrayPointer_Serial (v_data,v) = __N_VSetArrayPointer_Serial (pointer (v_data),convert (N_Vector,v))
77
+
78
+ function __N_VLinearSum_Serial (a:: realtype ,x:: N_Vector ,b:: realtype ,y:: N_Vector ,z:: N_Vector )
61
79
ccall ((:N_VLinearSum_Serial ,libsundials_nvecserial),Void,(realtype,N_Vector,realtype,N_Vector,N_Vector),a,x,b,y,z)
62
80
end
63
81
64
- function N_VConst_Serial (c:: realtype ,z:: N_Vector )
82
+ N_VLinearSum_Serial (a,x,b,y,z) = __N_VLinearSum_Serial (a,convert (N_Vector,x),b,convert (N_Vector,y),convert (N_Vector,z))
83
+
84
+ function __N_VConst_Serial (c:: realtype ,z:: N_Vector )
65
85
ccall ((:N_VConst_Serial ,libsundials_nvecserial),Void,(realtype,N_Vector),c,z)
66
86
end
67
87
68
- function N_VProd_Serial (x:: N_Vector ,y:: N_Vector ,z:: N_Vector )
88
+ N_VConst_Serial (c,z) = __N_VConst_Serial (c,convert (N_Vector,z))
89
+
90
+ function __N_VProd_Serial (x:: N_Vector ,y:: N_Vector ,z:: N_Vector )
69
91
ccall ((:N_VProd_Serial ,libsundials_nvecserial),Void,(N_Vector,N_Vector,N_Vector),x,y,z)
70
92
end
71
93
72
- function N_VDiv_Serial (x:: N_Vector ,y:: N_Vector ,z:: N_Vector )
94
+ N_VProd_Serial (x,y,z) = __N_VProd_Serial (convert (N_Vector,x),convert (N_Vector,y),convert (N_Vector,z))
95
+
96
+ function __N_VDiv_Serial (x:: N_Vector ,y:: N_Vector ,z:: N_Vector )
73
97
ccall ((:N_VDiv_Serial ,libsundials_nvecserial),Void,(N_Vector,N_Vector,N_Vector),x,y,z)
74
98
end
75
99
76
- function N_VScale_Serial (c:: realtype ,x:: N_Vector ,z:: N_Vector )
100
+ N_VDiv_Serial (x,y,z) = __N_VDiv_Serial (convert (N_Vector,x),convert (N_Vector,y),convert (N_Vector,z))
101
+
102
+ function __N_VScale_Serial (c:: realtype ,x:: N_Vector ,z:: N_Vector )
77
103
ccall ((:N_VScale_Serial ,libsundials_nvecserial),Void,(realtype,N_Vector,N_Vector),c,x,z)
78
104
end
79
105
80
- function N_VAbs_Serial (x:: N_Vector ,z:: N_Vector )
106
+ N_VScale_Serial (c,x,z) = __N_VScale_Serial (c,convert (N_Vector,x),convert (N_Vector,z))
107
+
108
+ function __N_VAbs_Serial (x:: N_Vector ,z:: N_Vector )
81
109
ccall ((:N_VAbs_Serial ,libsundials_nvecserial),Void,(N_Vector,N_Vector),x,z)
82
110
end
83
111
84
- function N_VInv_Serial (x:: N_Vector ,z:: N_Vector )
112
+ N_VAbs_Serial (x,z) = __N_VAbs_Serial (convert (N_Vector,x),convert (N_Vector,z))
113
+
114
+ function __N_VInv_Serial (x:: N_Vector ,z:: N_Vector )
85
115
ccall ((:N_VInv_Serial ,libsundials_nvecserial),Void,(N_Vector,N_Vector),x,z)
86
116
end
87
117
88
- function N_VAddConst_Serial (x:: N_Vector ,b:: realtype ,z:: N_Vector )
118
+ N_VInv_Serial (x,z) = __N_VInv_Serial (convert (N_Vector,x),convert (N_Vector,z))
119
+
120
+ function __N_VAddConst_Serial (x:: N_Vector ,b:: realtype ,z:: N_Vector )
89
121
ccall ((:N_VAddConst_Serial ,libsundials_nvecserial),Void,(N_Vector,realtype,N_Vector),x,b,z)
90
122
end
91
123
92
- function N_VDotProd_Serial (x:: N_Vector ,y:: N_Vector )
124
+ N_VAddConst_Serial (x,b,z) = __N_VAddConst_Serial (convert (N_Vector,x),b,convert (N_Vector,z))
125
+
126
+ function __N_VDotProd_Serial (x:: N_Vector ,y:: N_Vector )
93
127
ccall ((:N_VDotProd_Serial ,libsundials_nvecserial),realtype,(N_Vector,N_Vector),x,y)
94
128
end
95
129
96
- function N_VMaxNorm_Serial (x:: N_Vector )
130
+ N_VDotProd_Serial (x,y) = __N_VDotProd_Serial (convert (N_Vector,x),convert (N_Vector,y))
131
+
132
+ function __N_VMaxNorm_Serial (x:: N_Vector )
97
133
ccall ((:N_VMaxNorm_Serial ,libsundials_nvecserial),realtype,(N_Vector,),x)
98
134
end
99
135
100
- function N_VWrmsNorm_Serial (x:: N_Vector ,w:: N_Vector )
136
+ N_VMaxNorm_Serial (x) = __N_VMaxNorm_Serial (convert (N_Vector,x))
137
+
138
+ function __N_VWrmsNorm_Serial (x:: N_Vector ,w:: N_Vector )
101
139
ccall ((:N_VWrmsNorm_Serial ,libsundials_nvecserial),realtype,(N_Vector,N_Vector),x,w)
102
140
end
103
141
104
- function N_VWrmsNormMask_Serial (x:: N_Vector ,w:: N_Vector ,id:: N_Vector )
142
+ N_VWrmsNorm_Serial (x,w) = __N_VWrmsNorm_Serial (convert (N_Vector,x),convert (N_Vector,w))
143
+
144
+ function __N_VWrmsNormMask_Serial (x:: N_Vector ,w:: N_Vector ,id:: N_Vector )
105
145
ccall ((:N_VWrmsNormMask_Serial ,libsundials_nvecserial),realtype,(N_Vector,N_Vector,N_Vector),x,w,id)
106
146
end
107
147
108
- function N_VMin_Serial (x:: N_Vector )
148
+ N_VWrmsNormMask_Serial (x,w,id) = __N_VWrmsNormMask_Serial (convert (N_Vector,x),convert (N_Vector,w),convert (N_Vector,id))
149
+
150
+ function __N_VMin_Serial (x:: N_Vector )
109
151
ccall ((:N_VMin_Serial ,libsundials_nvecserial),realtype,(N_Vector,),x)
110
152
end
111
153
112
- function N_VWL2Norm_Serial (x:: N_Vector ,w:: N_Vector )
154
+ N_VMin_Serial (x) = __N_VMin_Serial (convert (N_Vector,x))
155
+
156
+ function __N_VWL2Norm_Serial (x:: N_Vector ,w:: N_Vector )
113
157
ccall ((:N_VWL2Norm_Serial ,libsundials_nvecserial),realtype,(N_Vector,N_Vector),x,w)
114
158
end
115
159
116
- function N_VL1Norm_Serial (x:: N_Vector )
160
+ N_VWL2Norm_Serial (x,w) = __N_VWL2Norm_Serial (convert (N_Vector,x),convert (N_Vector,w))
161
+
162
+ function __N_VL1Norm_Serial (x:: N_Vector )
117
163
ccall ((:N_VL1Norm_Serial ,libsundials_nvecserial),realtype,(N_Vector,),x)
118
164
end
119
165
120
- function N_VCompare_Serial (c:: realtype ,x:: N_Vector ,z:: N_Vector )
166
+ N_VL1Norm_Serial (x) = __N_VL1Norm_Serial (convert (N_Vector,x))
167
+
168
+ function __N_VCompare_Serial (c:: realtype ,x:: N_Vector ,z:: N_Vector )
121
169
ccall ((:N_VCompare_Serial ,libsundials_nvecserial),Void,(realtype,N_Vector,N_Vector),c,x,z)
122
170
end
123
171
124
- function N_VInvTest_Serial (x:: N_Vector ,z:: N_Vector )
172
+ N_VCompare_Serial (c,x,z) = __N_VCompare_Serial (c,convert (N_Vector,x),convert (N_Vector,z))
173
+
174
+ function __N_VInvTest_Serial (x:: N_Vector ,z:: N_Vector )
125
175
ccall ((:N_VInvTest_Serial ,libsundials_nvecserial),Cint,(N_Vector,N_Vector),x,z)
126
176
end
127
177
128
- function N_VConstrMask_Serial (c:: N_Vector ,x:: N_Vector ,m:: N_Vector )
178
+ N_VInvTest_Serial (x,z) = __N_VInvTest_Serial (convert (N_Vector,x),convert (N_Vector,z))
179
+
180
+ function __N_VConstrMask_Serial (c:: N_Vector ,x:: N_Vector ,m:: N_Vector )
129
181
ccall ((:N_VConstrMask_Serial ,libsundials_nvecserial),Cint,(N_Vector,N_Vector,N_Vector),c,x,m)
130
182
end
131
183
132
- function N_VMinQuotient_Serial (num:: N_Vector ,denom:: N_Vector )
184
+ N_VConstrMask_Serial (c,x,m) = __N_VConstrMask_Serial (convert (N_Vector,c),convert (N_Vector,x),convert (N_Vector,m))
185
+
186
+ function __N_VMinQuotient_Serial (num:: N_Vector ,denom:: N_Vector )
133
187
ccall ((:N_VMinQuotient_Serial ,libsundials_nvecserial),realtype,(N_Vector,N_Vector),num,denom)
134
188
end
189
+
190
+ N_VMinQuotient_Serial (num,denom) = __N_VMinQuotient_Serial (convert (N_Vector,num),convert (N_Vector,denom))
0 commit comments