r"""Wrapper for stats.h

Generated with:
./run.py --no-embed-preamble D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32 --cpp x86_64-w64-mingw32-gcc -E -I/D/src/osgeo4w/src/grass8/osgeo4w/osgeo4w/include -D_FILE_OFFSET_BITS=64     -I/d/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include -I/d/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include -D__GLIBC_HAVE_LONG_LONG -lgrass_stats.8.3 D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/stats.h D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h -o OBJ.x86_64-w64-mingw32/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.3"] = load_library("grass_stats.8.3")

# 1 libraries
# End libraries

# No modules

DCELL = c_double# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/gis.h: 626

stat_func = CFUNCTYPE(UNCHECKED(None), POINTER(DCELL), POINTER(DCELL), c_int, POINTER(None))# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 4

stat_func_w = CFUNCTYPE(UNCHECKED(None), POINTER(DCELL), POINTER(DCELL * int(2)), c_int, POINTER(None))# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 5

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 7
try:
    c_ave = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_ave")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 8
try:
    c_count = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_count")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 9
try:
    c_divr = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_divr")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 10
try:
    c_intr = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_intr")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 11
try:
    c_max = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_max")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 12
try:
    c_maxx = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_maxx")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 13
try:
    c_median = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_median")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 14
try:
    c_min = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_min")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 15
try:
    c_minx = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_minx")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 16
try:
    c_mode = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_mode")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 17
try:
    c_stddev = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_stddev")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 18
try:
    c_sum = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_sum")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 19
try:
    c_thresh = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_thresh")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 20
try:
    c_var = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_var")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 21
try:
    c_range = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_range")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 22
try:
    c_reg_m = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_reg_m")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 23
try:
    c_reg_c = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_reg_c")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 24
try:
    c_reg_r2 = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_reg_r2")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 25
try:
    c_reg_t = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_reg_t")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 26
try:
    c_quart1 = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_quart1")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 27
try:
    c_quart3 = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_quart3")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 28
try:
    c_perc90 = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_perc90")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 29
try:
    c_quant = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_quant")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 30
try:
    c_skew = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_skew")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 31
try:
    c_kurt = (stat_func).in_dll(_libs["grass_stats.8.3"], "c_kurt")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 33
try:
    w_ave = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_ave")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 34
try:
    w_count = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_count")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 35
try:
    w_median = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_median")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 36
try:
    w_min = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_min")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 37
try:
    w_max = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_max")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 38
try:
    w_mode = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_mode")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 39
try:
    w_quart1 = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_quart1")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 40
try:
    w_quart3 = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_quart3")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 41
try:
    w_perc90 = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_perc90")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 42
try:
    w_quant = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_quant")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 43
try:
    w_reg_m = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_reg_m")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 44
try:
    w_reg_c = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_reg_c")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 45
try:
    w_reg_r2 = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_reg_r2")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 46
try:
    w_reg_t = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_reg_t")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 47
try:
    w_stddev = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_stddev")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 48
try:
    w_sum = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_sum")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 49
try:
    w_var = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_var")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 50
try:
    w_skew = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_skew")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 51
try:
    w_kurt = (stat_func_w).in_dll(_libs["grass_stats.8.3"], "w_kurt")
except:
    pass

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 53
if _libs["grass_stats.8.3"].has("sort_cell", "cdecl"):
    sort_cell = _libs["grass_stats.8.3"].get("sort_cell", "cdecl")
    sort_cell.argtypes = [POINTER(DCELL), c_int]
    sort_cell.restype = c_int

# D:/src/osgeo4w/src/grass8/grass-8.3.0/dist.x86_64-w64-mingw32/include/grass/defs/stats.h: 54
if _libs["grass_stats.8.3"].has("sort_cell_w", "cdecl"):
    sort_cell_w = _libs["grass_stats.8.3"].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

