functions for native float arrays