Function Serialization#

typedef struct mlx_function_exporter_ mlx_function_exporter#
typedef struct mlx_imported_function_ mlx_imported_function#
int mlx_export_function(const char *file, const mlx_closure fun, const mlx_vector_array args, bool shapeless)#
int mlx_export_function_kwargs(const char *file, const mlx_closure_kwargs fun, const mlx_vector_array args, const mlx_map_string_to_array kwargs, bool shapeless)#
mlx_function_exporter mlx_function_exporter_new(const char *file, const mlx_closure fun, bool shapeless)#
int mlx_function_exporter_free(mlx_function_exporter xfunc)#
int mlx_function_exporter_apply(const mlx_function_exporter xfunc, const mlx_vector_array args)#
int mlx_function_exporter_apply_kwargs(const mlx_function_exporter xfunc, const mlx_vector_array args, const mlx_map_string_to_array kwargs)#
mlx_imported_function mlx_imported_function_new(const char *file)#
int mlx_imported_function_free(mlx_imported_function xfunc)#
int mlx_imported_function_apply(mlx_vector_array *res, const mlx_imported_function xfunc, const mlx_vector_array args)#
int mlx_imported_function_apply_kwargs(mlx_vector_array *res, const mlx_imported_function xfunc, const mlx_vector_array args, const mlx_map_string_to_array kwargs)#
struct mlx_function_exporter_#
#include <export.h>
struct mlx_imported_function_#
#include <export.h>