You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns the integer count of number of elements in the array reference. The
196
190
functino doesn't care what is in the elements.
197
191
198
-
=itemC<int PerlOMP_2D_AoA_NUM_ROWS(SV *AoAref)>
192
+
=head2C<int PerlOMP_2D_AoA_NUM_ROWS(SV *AoAref)>
199
193
200
194
Returns the integer count of number of rows in a 2D array reference. The
201
195
fucntion doesn't care what the rows looks like or what is in them
202
196
203
-
=itemC<int PerlOMP_2D_AoA_NUM_COLS(SV *AoAref)>
197
+
=head2C<int PerlOMP_2D_AoA_NUM_COLS(SV *AoAref)>
204
198
205
199
Returns the number of elements in the first row of the provided 2D array
206
200
reference. It assumes all rows are the same. It doesn't verify the contents
207
201
of each row.
208
202
209
-
=back
210
-
211
203
=head1PROVIDED PERL TO C CONVERSION FUNCTIONS
212
204
213
205
B<Note>: Work is currently focused on finding the true limits of the Perl C
214
206
API. It is likely that in a lot of cases, elements in Perl Arrays (AV) and Perl
215
207
Hashes (HV) maybe accessed safely without first transferring the entire data
216
208
structures into its pure C<C> equivalent.
217
209
218
-
=over4
219
-
220
-
=itemC<PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY>
210
+
=head2C<PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY>
221
211
222
212
void PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY(SV *AVref, int numElements, float retArray[numElements]);
223
213
224
214
Converts a 1D Perl Array Reference (C<AV*>) into a 1D C array of floats. This function assumes the Perl array contains numeric floating point values.
225
215
226
-
=itemC<PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY_r>
216
+
=head2C<PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY_r>
227
217
228
218
void PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY_r(SV *AVref, int numElements, float retArray[numElements]);
229
219
230
220
The parallelized version of C<PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
231
221
232
-
=itemC<PerlOMP_1D_Array_TO_1D_INT_ARRAY>
222
+
=head2C<PerlOMP_1D_Array_TO_1D_INT_ARRAY>
233
223
234
224
void PerlOMP_1D_Array_TO_1D_INT_ARRAY(SV *AVref, int numElements, int retArray[numElements]);
235
225
236
226
Converts a 1D Perl Array Reference (C<AV*>) into a 1D C array of integers. This function assumes the Perl array contains integer values.
237
227
238
-
=itemC<PerlOMP_1D_Array_TO_1D_INT_ARRAY_r>
228
+
=head2C<PerlOMP_1D_Array_TO_1D_INT_ARRAY_r>
239
229
240
230
void PerlOMP_1D_Array_TO_1D_INT_ARRAY_r(SV *AVref, int numElements, int retArray[numElements]);
241
231
242
232
The parallelized version of C<PerlOMP_1D_Array_TO_1D_INT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
243
233
244
-
=itemC<PerlOMP_1D_Array_TO_1D_STRING_ARRAY>
234
+
=head2C<PerlOMP_1D_Array_TO_1D_STRING_ARRAY>
245
235
246
236
void PerlOMP_1D_Array_TO_1D_STRING_ARRAY(SV *AVref, int numElements, char *retArray[numElements]);
247
237
248
238
Converts a 1D Perl Array Reference (C<AV*>) into a 1D C array of strings. The Perl array should contain string values.
249
239
250
-
=itemC<PerlOMP_1D_Array_TO_1D_STRING_ARRAY_r>
240
+
=head2C<PerlOMP_1D_Array_TO_1D_STRING_ARRAY_r>
251
241
252
242
void PerlOMP_1D_Array_TO_1D_STRING_ARRAY_r(SV *AVref, int numElements, char *retArray[numElements]);
253
243
254
244
The parallelized version of C<PerlOMP_1D_Array_TO_1D_STRING_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
255
245
256
-
=itemC<PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY>
246
+
=head2C<PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY>
257
247
258
248
void PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY(SV *AoA, int numRows, int rowSize, float retArray[numRows][rowSize]);
259
249
260
250
Converts a 2D Array of Arrays (AoA) in Perl into a 2D C array of floats. The Perl array should be an array of arrays, where each inner array contains floating point values.
261
251
262
-
=itemC<PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY_r>
252
+
=head2C<PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY_r>
263
253
264
254
void PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY_r(SV *AoA, int numRows, int rowSize, float retArray[numRows][rowSize]);
265
255
266
256
The parallelized version of C<PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
267
257
268
-
=itemC<PerlOMP_2D_AoA_TO_2D_INT_ARRAY>
258
+
=head2C<PerlOMP_2D_AoA_TO_2D_INT_ARRAY>
269
259
270
260
void PerlOMP_2D_AoA_TO_2D_INT_ARRAY(SV *AoA, int numRows, int rowSize, int retArray[numRows][rowSize]);
271
261
272
262
Converts a 2D Array of Arrays (AoA) in Perl into a 2D C array of integers. The Perl array should be an array of arrays, where each inner array contains integer values.
273
263
274
-
=itemC<PerlOMP_2D_AoA_TO_2D_INT_ARRAY_r>
264
+
=head2C<PerlOMP_2D_AoA_TO_2D_INT_ARRAY_r>
275
265
276
266
void PerlOMP_2D_AoA_TO_2D_INT_ARRAY_r(SV *AoA, int numRows, int rowSize, int retArray[numRows][rowSize]);
277
267
278
268
The parallelized version of C<PerlOMP_2D_AoA_TO_2D_INT_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
279
269
280
-
=itemC<PerlOMP_2D_AoA_TO_2D_STRING_ARRAY>
270
+
=head2C<PerlOMP_2D_AoA_TO_2D_STRING_ARRAY>
281
271
282
272
void PerlOMP_2D_AoA_TO_2D_STRING_ARRAY(SV *AoA, int numRows, int rowSize, char *retArray[numRows][rowSize]);
283
273
284
274
Converts a 2D Array of Arrays (AoA) in Perl into a 2D C array of strings. The Perl array should be an array of arrays, where each inner array contains string values.
285
275
286
-
=itemC<PerlOMP_2D_AoA_TO_2D_STRING_ARRAY_r>
276
+
=head2C<PerlOMP_2D_AoA_TO_2D_STRING_ARRAY_r>
287
277
288
278
void PerlOMP_2D_AoA_TO_2D_STRING_ARRAY_r(SV *AoA, int numRows, int rowSize, char *retArray[numRows][rowSize]);
289
279
290
280
The parallelized version of C<PerlOMP_2D_AoA_TO_2D_STRING_ARRAY> using OpenMP. This function performs the same operation, but the array conversion is parallelized with OpenMP.
291
281
292
-
=back
293
-
294
282
=head1PROVIDED ARRAY MEMBER VERIFICATION FUNCTIONS
295
283
296
-
=over4
297
-
298
-
=itemC<PerlOMP_VERIFY_1D_Array>
284
+
=head2C<PerlOMP_VERIFY_1D_Array>
299
285
300
286
void PerlOMP_VERIFY_1D_Array(SV* array);
301
287
302
288
Verifies that the given Perl variable is a valid 1D array reference.
303
289
304
-
=itemC<PerlOMP_VERIFY_1D_INT_ARRAY>
290
+
=head2C<PerlOMP_VERIFY_1D_INT_ARRAY>
305
291
306
292
void PerlOMP_VERIFY_1D_INT_ARRAY(SV* array);
307
293
308
294
Verifies that the given 1D array contains only integer values.
309
295
310
-
=itemC<PerlOMP_VERIFY_1D_FLOAT_ARRAY>
296
+
=head2C<PerlOMP_VERIFY_1D_FLOAT_ARRAY>
311
297
312
298
void PerlOMP_VERIFY_1D_FLOAT_ARRAY(SV* array);
313
299
314
300
Verifies that the given 1D array contains only floating-point values.
315
301
316
-
=itemC<PerlOMP_VERIFY_1D_CHAR_ARRAY>
302
+
=head2C<PerlOMP_VERIFY_1D_CHAR_ARRAY>
317
303
318
304
void PerlOMP_VERIFY_1D_CHAR_ARRAY(SV* array);
319
305
320
306
Verifies that the given 1D array contains only string values.
321
307
322
-
=itemC<PerlOMP_VERIFY_2D_AoA>
308
+
=head2C<PerlOMP_VERIFY_2D_AoA>
323
309
324
310
void PerlOMP_VERIFY_2D_AoA(SV* array);
325
311
326
312
Verifies that the given Perl variable is a valid 2D array of arrays (AoA) reference.
327
313
328
-
=itemC<PerlOMP_VERIFY_2D_INT_ARRAY>
314
+
=head2C<PerlOMP_VERIFY_2D_INT_ARRAY>
329
315
330
316
void PerlOMP_VERIFY_2D_INT_ARRAY(SV* array);
331
317
332
318
Verifies that the given 2D array contains only integer values.
333
319
334
-
=itemC<PerlOMP_VERIFY_2D_FLOAT_ARRAY>
320
+
=head2C<PerlOMP_VERIFY_2D_FLOAT_ARRAY>
335
321
336
322
void PerlOMP_VERIFY_2D_FLOAT_ARRAY(SV* array);
337
323
338
324
Verifies that the given 2D array contains only floating-point values.
339
325
340
-
=itemC<PerlOMP_VERIFY_2D_STRING_ARRAY>
326
+
=head2C<PerlOMP_VERIFY_2D_STRING_ARRAY>
341
327
342
328
void PerlOMP_VERIFY_2D_STRING_ARRAY(SV* array);
343
329
344
330
Verifies that the given 2D array contains only string values.
345
331
346
-
=back
347
-
348
332
=head1SEE ALSO
349
333
350
334
This is a module that aims at making it easier to bootstrap Perl+OpenMP
0 commit comments