Skip to content

Tracker: Additional C functions and macros to implement

wwlwpd edited this page Mar 4, 2025 · 23 revisions
| **Status**  | **Function Name**                           | **Description**                                                      |
|------------|-------------------------------------------|----------------------------------------------------------------------|
| ✅ DONE    | `PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY`      | Converts a 1D Perl array to a C array of floats.                     |
| ✅ DONE    | `PerlOMP_1D_Array_TO_1D_FLOAT_ARRAY_r`    | Threaded version: Converts a 1D Perl array to a C array of floats.   |
| ✅ DONE    | `PerlOMP_1D_Array_TO_1D_INT_ARRAY`        | Converts a 1D Perl array to a C array of integers.                   |
| ✅ DONE    | `PerlOMP_1D_Array_TO_1D_INT_ARRAY_r`      | Threaded version: Converts a 1D Perl array to a C array of integers. |
| ✅ DONE    | `PerlOMP_1D_Array_TO_1D_STRING_ARRAY`     | Converts a 1D Perl array to a C array of strings.                    |
| ✅ DONE    | `PerlOMP_1D_Array_TO_1D_STRING_ARRAY_r`   | Threaded version: Converts a 1D Perl array to a C array of strings.  |
| ✅ DONE    | `PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY`        | Converts a 2D Perl array of arrays to a 2D C array of floats.        |
| ✅ DONE    | `PerlOMP_2D_AoA_TO_2D_FLOAT_ARRAY_r`      | Threaded version: Converts a 2D Perl array of arrays to a 2D C array of floats. |
| ✅ DONE    | `PerlOMP_2D_AoA_TO_2D_INT_ARRAY`          | Converts a 2D Perl array of arrays to a 2D C array of integers.      |
| ✅ DONE    | `PerlOMP_2D_AoA_TO_2D_INT_ARRAY_r`        | Threaded version: Converts a 2D Perl array of arrays to a 2D C array of integers. |
| 🚧 TO DO   | `PerlOMP_2D_AoA_TO_2D_STRING_ARRAY`       | Converts a 2D Perl array of arrays to a 2D C array of strings.       |
| 🚧 TO DO   | `PerlOMP_2D_AoA_TO_2D_STRING_ARRAY_r`     | Threaded version: Converts a 2D Perl array of arrays to a 2D C array of strings. |

Verification Functions and Macros for Array Contents

Complete Macro Name Description
TODO PerlOMP_VERIFY_1D_Array Checks if a Perl variable is a valid 1D array reference.
TODO PerlOMP_VERIFY_2D_AoA Checks if a Perl variable is a valid 2D array of arrays reference.
TODO PerlOMP_VERIFY_1D_FLOAT_ARRAY Verifies that the 1D array contains only floats.
TODO PerlOMP_VERIFY_1D_INT_ARRAY Verifies that the 1D array contains only integers.
TODO PerlOMP_VERIFY_1D_DOUBLE_ARRAY Verifies that the 1D array contains only doubles.
TODO PerlOMP_VERIFY_1D_CHAR_ARRAY Verifies that the 1D array contains only characters (strings).
TODO PerlOMP_VERIFY_1D_MIXED_ARRAY Verifies that the 1D array contains mixed types (if needed, use type-specific checks).
TODO PerlOMP_VERIFY_2D_FLOAT_ARRAY Verifies that the 2D array of arrays contains only floats.
TODO PerlOMP_VERIFY_2D_INT_ARRAY Verifies that the 2D array of arrays contains only integers.
TODO PerlOMP_VERIFY_2D_DOUBLE_ARRAY Verifies that the 2D array of arrays contains only doubles.
TODO PerlOMP_VERIFY_2D_STRING_ARRAY Verifies that the 2D array of arrays contains only strings.
TODO PerlOMP_VERIFY_2D_MIXED_ARRAY Verifies that the 2D array of arrays contains mixed data types.
Clone this wiki locally