Home | Previous Page | Next Page   Programming DataBlade Module Routines in C > Editing Opaque Type Support Routines in opaque.c >

Mathematic Functions

If you choose to generate mathematic functions, BladeSmith generates the following mathematic functions that take two opaque data type arguments, return an opaque data type, and are bound to operators:

BladeSmith generates the following mathematic functions that take one opaque data type argument, return an opaque data type, and are bound to operators:

The C name of each of these functions is prefixed by the name of the opaque data type for which they are defined.

BladeSmith generates only template code for these mathematic functions.

The Generated Code

These functions have an unused MI_FPARAM argument and one or two opaque data type arguments, and they return a pointer to the resulting opaque type structure.

In the generated code, the return value is set to 0. You must add code to perform the required operation.

Completing the Code

To complete the code for these mathematic functions, you must:

The database server frees the allocated memory when it has finished processing the result.

See IBM Informix: User-Defined Routines and Data Types Developer's Guide for more information on these functions.

Example

The Matrix DataBlade module contains some of the mathematic functions.

Home | [ Top of Page | Previous Page | Next Page | Contents | Index ]