@@ -159,53 +159,53 @@ type VectorEWiseBenchmarksWithDataTransfer<'elem when 'elem : struct>(
159159type VectorEWiseBenchmarks4FloatSparseWithoutDataTransfer () =
160160
161161 inherit VectorEWiseBenchmarksWithoutDataTransfer< float>(
162- ( fun context -> Vector.map2 context ArithmeticOperations.floatSum ),
162+ ( fun context -> Vector.map2 context ArithmeticOperations.floatSumOption ),
163163 VectorGenerator.floatPair Sparse)
164164
165165type VectorEWiseBenchmarks4Int32SparseWithoutDataTransfer () =
166166
167167 inherit VectorEWiseBenchmarksWithoutDataTransfer< int32>(
168- ( fun context -> Vector.map2 context ArithmeticOperations.intSum ),
168+ ( fun context -> Vector.map2 context ArithmeticOperations.intSumOption ),
169169 VectorGenerator.intPair Sparse)
170170
171171/// General
172172
173173type VectorEWiseGeneralBenchmarks4FloatSparseWithoutDataTransfer () =
174174
175175 inherit VectorEWiseBenchmarksWithoutDataTransfer< float>(
176- ( fun context -> Vector.map2 context ArithmeticOperations.floatSum ),
176+ ( fun context -> Vector.map2 context ArithmeticOperations.floatSumOption ),
177177 VectorGenerator.floatPair Sparse)
178178
179179type VectorEWiseGeneralBenchmarks4Int32SparseWithoutDataTransfer () =
180180
181181 inherit VectorEWiseBenchmarksWithoutDataTransfer< int32>(
182- ( fun context -> Vector.map2 context ArithmeticOperations.intSum ),
182+ ( fun context -> Vector.map2 context ArithmeticOperations.intSumOption ),
183183 VectorGenerator.intPair Sparse)
184184
185185/// With data transfer
186186
187187type VectorEWiseBenchmarks4FloatSparseWithDataTransfer () =
188188
189189 inherit VectorEWiseBenchmarksWithDataTransfer< float>(
190- ( fun context -> Vector.map2 context ArithmeticOperations.floatSum ),
190+ ( fun context -> Vector.map2 context ArithmeticOperations.floatSumOption ),
191191 VectorGenerator.floatPair Sparse)
192192
193193type VectorEWiseBenchmarks4Int32SparseWithDataTransfer () =
194194
195195 inherit VectorEWiseBenchmarksWithDataTransfer< int32>(
196- ( fun context -> Vector.map2 context ArithmeticOperations.intSum ),
196+ ( fun context -> Vector.map2 context ArithmeticOperations.intSumOption ),
197197 VectorGenerator.intPair Sparse)
198198
199199/// General with data transfer
200200
201201type VectorEWiseGeneralBenchmarks4FloatSparseWithDataTransfer () =
202202
203203 inherit VectorEWiseBenchmarksWithDataTransfer< float>(
204- ( fun context -> Vector.map2 context ArithmeticOperations.floatSum ),
204+ ( fun context -> Vector.map2 context ArithmeticOperations.floatSumOption ),
205205 VectorGenerator.floatPair Sparse)
206206
207207type VectorEWiseGeneralBenchmarks4Int32SparseWithDataTransfer () =
208208
209209 inherit VectorEWiseBenchmarksWithDataTransfer< int32>(
210- ( fun context -> Vector.map2 context ArithmeticOperations.intSum ),
210+ ( fun context -> Vector.map2 context ArithmeticOperations.intSumOption ),
211211 VectorGenerator.intPair Sparse)
0 commit comments