Data Types, Accuracy Modes, and Performance Tips

VML includes mathematical and pack/unpack vector functions for single and double precision vector arguments of real and compex types. The library provides Fortran- and C-interfaces for all functions, including the associated service functions. The Function Naming Conventions topic shows how to call these functions from different languages.

Performance depends on a number of factors, including vectorization and threading overhead. The recommended usage is as follows:

All VML vector functions support the following accuracy modes:

Note that using the EP mode does not guarantee accurate processing of corner cases and special values. Although the default accuracy is HA, LA is sufficient in most cases. For applications that require less accuracy (for example, media applications, some Monte Carlo simulations, etc.), the EP mode may be sufficient.

VML handles special values in accordance with the C99 standard [C99].

Use the vmlSetMode(mode) function (see Table "Values of the mode Parameter") to switch between the HA, LA, and EP modes. The vmlGetMode() function returns the current mode.

See Also


Submit feedback on this help topic

Copyright © 1994 - 2010, Intel Corporation. All rights reserved.