r"""Wrapper for stats.h

Generated with:
./run.py --no-embed-preamble /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin20.6.0 --cpp /usr/bin/clang -E  -I/opt/local/include -isysroot/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk  "-Drestrict=" "-D__attribute__(x)=" "-D_Nonnull="  "-Dint8_t=char" "-DCF_INLINE=" "-D_Null_unspecified="  "-D__DARWIN_OS_INLINE="      -I/opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin20.6.0/include -I/opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin20.6.0/include -D__GLIBC_HAVE_LONG_LONG -lgrass_stats.8.5 /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin20.6.0/include/grass/stats.h /opt/local/var/macports/build/grass-4d324bc0/work/grass-8.5.0/dist.aarch64-apple-darwin20.6.0/include/grass/defs/stats.h -o OBJ.aarch64-apple-darwin20.6.0/stats.py

Do not modify this file.
"""

__docformat__ = "restructuredtext"

# Begin preamble for Python

from .ctypes_preamble import *
from .ctypes_preamble import _variadic_function

# End preamble

_libs = {}
_libdirs = []

# Begin loader

from .ctypes_loader import *

# End loader

add_library_search_dirs([])

# Begin libraries
_libs["grass_stats.8.5"] = load_library("grass_stats.8.5")

# 1 libraries
# End libraries

# No modules

DCELL = c_double# include/grass/gis.h: 635

stat_func = CFUNCTYPE(UNCHECKED(None), POINTER(DCELL), POINTER(DCELL), c_int, POINTER(None))# include/grass/defs/stats.h: 4

stat_func_w = CFUNCTYPE(UNCHECKED(None), POINTER(DCELL), POINTER(DCELL * int(2)), c_int, POINTER(None))# include/grass/defs/stats.h: 5

# include/grass/defs/stats.h: 7
try:
    c_ave = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_ave")
except:
    pass

# include/grass/defs/stats.h: 8
try:
    c_count = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_count")
except:
    pass

# include/grass/defs/stats.h: 9
try:
    c_divr = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_divr")
except:
    pass

# include/grass/defs/stats.h: 10
try:
    c_intr = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_intr")
except:
    pass

# include/grass/defs/stats.h: 11
try:
    c_max = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_max")
except:
    pass

# include/grass/defs/stats.h: 12
try:
    c_maxx = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_maxx")
except:
    pass

# include/grass/defs/stats.h: 13
try:
    c_median = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_median")
except:
    pass

# include/grass/defs/stats.h: 14
try:
    c_min = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_min")
except:
    pass

# include/grass/defs/stats.h: 15
try:
    c_minx = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_minx")
except:
    pass

# include/grass/defs/stats.h: 16
try:
    c_mode = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_mode")
except:
    pass

# include/grass/defs/stats.h: 17
try:
    c_stddev = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_stddev")
except:
    pass

# include/grass/defs/stats.h: 18
try:
    c_sum = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_sum")
except:
    pass

# include/grass/defs/stats.h: 19
try:
    c_thresh = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_thresh")
except:
    pass

# include/grass/defs/stats.h: 20
try:
    c_var = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_var")
except:
    pass

# include/grass/defs/stats.h: 21
try:
    c_range = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_range")
except:
    pass

# include/grass/defs/stats.h: 22
try:
    c_reg_m = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_reg_m")
except:
    pass

# include/grass/defs/stats.h: 23
try:
    c_reg_c = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_reg_c")
except:
    pass

# include/grass/defs/stats.h: 24
try:
    c_reg_r2 = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_reg_r2")
except:
    pass

# include/grass/defs/stats.h: 25
try:
    c_reg_t = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_reg_t")
except:
    pass

# include/grass/defs/stats.h: 26
try:
    c_quart1 = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_quart1")
except:
    pass

# include/grass/defs/stats.h: 27
try:
    c_quart3 = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_quart3")
except:
    pass

# include/grass/defs/stats.h: 28
try:
    c_perc90 = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_perc90")
except:
    pass

# include/grass/defs/stats.h: 29
try:
    c_quant = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_quant")
except:
    pass

# include/grass/defs/stats.h: 30
try:
    c_skew = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_skew")
except:
    pass

# include/grass/defs/stats.h: 31
try:
    c_kurt = (stat_func).in_dll(_libs["grass_stats.8.5"], "c_kurt")
except:
    pass

# include/grass/defs/stats.h: 33
try:
    w_ave = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_ave")
except:
    pass

# include/grass/defs/stats.h: 34
try:
    w_count = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_count")
except:
    pass

# include/grass/defs/stats.h: 35
try:
    w_median = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_median")
except:
    pass

# include/grass/defs/stats.h: 36
try:
    w_min = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_min")
except:
    pass

# include/grass/defs/stats.h: 37
try:
    w_max = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_max")
except:
    pass

# include/grass/defs/stats.h: 38
try:
    w_mode = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_mode")
except:
    pass

# include/grass/defs/stats.h: 39
try:
    w_quart1 = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_quart1")
except:
    pass

# include/grass/defs/stats.h: 40
try:
    w_quart3 = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_quart3")
except:
    pass

# include/grass/defs/stats.h: 41
try:
    w_perc90 = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_perc90")
except:
    pass

# include/grass/defs/stats.h: 42
try:
    w_quant = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_quant")
except:
    pass

# include/grass/defs/stats.h: 43
try:
    w_reg_m = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_reg_m")
except:
    pass

# include/grass/defs/stats.h: 44
try:
    w_reg_c = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_reg_c")
except:
    pass

# include/grass/defs/stats.h: 45
try:
    w_reg_r2 = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_reg_r2")
except:
    pass

# include/grass/defs/stats.h: 46
try:
    w_reg_t = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_reg_t")
except:
    pass

# include/grass/defs/stats.h: 47
try:
    w_stddev = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_stddev")
except:
    pass

# include/grass/defs/stats.h: 48
try:
    w_sum = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_sum")
except:
    pass

# include/grass/defs/stats.h: 49
try:
    w_var = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_var")
except:
    pass

# include/grass/defs/stats.h: 50
try:
    w_skew = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_skew")
except:
    pass

# include/grass/defs/stats.h: 51
try:
    w_kurt = (stat_func_w).in_dll(_libs["grass_stats.8.5"], "w_kurt")
except:
    pass

# include/grass/defs/stats.h: 53
if _libs["grass_stats.8.5"].has("sort_cell", "cdecl"):
    sort_cell = _libs["grass_stats.8.5"].get("sort_cell", "cdecl")
    sort_cell.argtypes = [POINTER(DCELL), c_int]
    sort_cell.restype = c_int

# include/grass/defs/stats.h: 54
if _libs["grass_stats.8.5"].has("sort_cell_w", "cdecl"):
    sort_cell_w = _libs["grass_stats.8.5"].get("sort_cell_w", "cdecl")
    sort_cell_w.argtypes = [POINTER(DCELL * int(2)), c_int]
    sort_cell_w.restype = c_int

# No inserted files

# No prefix-stripping

