ae2f_docs
errGlob.h
Go to the documentation of this file.
1/**
2 * @file errGlob.h
3 * @author ae2f
4 * @brief
5 * Those numbers with [ @ref ae2f_err_t ] will be the state.
6 *
7 * @date 2025-02-01
8 *
9 * @copyright Copyright (c) 2025
10 */
11
12#if !defined(ae2f_errGlobal_h)
13#define ae2f_errGlobal_h
14
15#include <stdint.h>
16
17/// @brief
18/// Informs that this number represents the error.
19typedef uint8_t ae2f_err_t;
20
21/// @brief
22/// The Operation you've wanted went successful.
23#define ae2f_errGlob_OK 0
24
25/// @brief
26/// Failed to find the function on preprocessor which is callable for some reason
27/// No operation has beed done.
28#define ae2f_errGlob_IMP_NOT_FOUND 0b1
29
30/// @brief
31/// Failed to refer the pointer either l-value inside the function.
32#define ae2f_errGlob_PTR_IS_NULL 0b10
33
34/// @brief
35/// Failed freeing the memory.
36#define ae2f_errGlob_FLUSH_FAILED 0b100
37
38/// @brief
39/// stdlib allocating functions (malloc, calloc, realloc) has been failed.
40#define ae2f_errGlob_ALLOC_FAILED 0b1000
41
42/// @brief
43/// Found that parameter sent by programmer is invalid.
44/// The operation may have been ceased while the middle.
45#define ae2f_errGlob_WRONG_OPERATION 0b10000
46
47/// @brief
48/// Found some errors, but not by parameters.
49/// The operation has failed.
50#define ae2f_errGlob_NFOUND 0b100000
51
52/// @brief
53/// Means that error was not critical.
54///
55/// The operation went done. \n
56/// Note that operation may not be valid.
57#define ae2f_errGlob_DONE_HOWEV 0b1000000
58
59/// @brief
60/// Check if the state code is a critical error.
61/// @param n {ae2f_err_t} Error code
62/// @return If it is not zero, it is a critical error.
63#define ae2f_errGlobNormalised(n) (((n) & ae2f_errGlob_DONE_HOWEV) ? ae2f_errGlob_OK : (n))
64
65#endif
#define ON
Definition cmake.hpp:5
#define ae2f_IS_SHARED
Is a library shared.
Definition Call.auto.h:12
#define ae2f_structdef(key, name)
Definition Cast.h:110
#define ae2f_structdef_v(key, name,...)
Definition Cast.h:105
#define ae2f_reinterpret_cast(t, v)
Definition Cast.h:52
#define unless(...)
Invokes when condition is false.
Definition Cast.h:103
#define ae2f_extern
Suggests the existence of external variable or function, in naming of C. [non-mangling].
Definition Cast.h:88
#define ae2f_CmpGetGt(a, b)
Definition Cmp.h:20
#define ae2f_CmpGetLs(a, b)
Definition Cmp.h:26
#define constexprmethod
Definition Constexpr.hpp:50
ae2f_eAnnCnnPool
Pooling type. See ae2f_AnnCnnPool.
Definition Conv.h:48
@ ae2f_eAnnCnnPool_MIDDLE
Middle. respect the output vector's value.
Definition Conv.h:65
@ ae2f_eAnnCnnPool_MAX
Max.
Definition Conv.h:51
@ ae2f_eAnnCnnPool_MIN
Min.
Definition Conv.h:54
@ ae2f_eAnnCnnPool_ADD
Add.
Definition Conv.h:57
@ ae2f_eAnnCnnPool_AVG
Average.
Definition Conv.h:60
ae2f_extern ae2f_SHAREDEXPORT ae2f_err_t ae2f_AnnCnnPool1d(const ae2f_float_t *inv, const size_t inc, ae2f_float_t *outv, size_t *opt_outc, const size_t window, const size_t stride, ae2f_eAnnCnnPool type) noexcept
Definition Conv.imp.c:124
ae2f_extern ae2f_SHAREDEXPORT ae2f_err_t ae2f_AnnCnnPool_imp(size_t dim, const ae2f_float_t *inv, const size_t *inc, size_t incc, ae2f_float_t *outv, size_t *opt_outc, size_t outcc, const size_t *window_opt, const size_t *stride_opt, ae2f_eAnnCnnPool type)
Definition Conv.imp.c:267
ae2f_extern ae2f_SHAREDEXPORT ae2f_err_t ae2f_AnnCnnPool(size_t dim, const ae2f_float_t *inv, const size_t *inc, size_t incc, ae2f_float_t *outv, size_t *opt_outc, size_t outcc, const size_t *window_opt, size_t windowcc, const size_t *stride_opt, ae2f_eAnnCnnPool type)
Definition Conv.imp.c:350
ae2f_SHAREDEXPORT ae2f_err_t ae2f_AnnCnnConv1d(const ae2f_float_t *infv, size_t infc, const ae2f_float_t *ingv, size_t ingc, ae2f_float_t *outv, size_t *opt_outc, size_t stride, size_t pad)
all vectors are suggested initiated as 0.
Definition Conv.imp.c:69
ae2f_SHAREDEXPORT ae2f_err_t ae2f_AnnCnnConv(size_t dim, const ae2f_float_t *infv, const size_t *infc, size_t infcc, const ae2f_float_t *ingv, const size_t *ingc, size_t ingcc, ae2f_float_t *outv, size_t *outc_opt, size_t outcc, const size_t *stride_opt, const size_t *pad_opt)
dim must be the dimension of mmaps, lengths of lists. This function is meant to be recursive....
Definition Conv.imp.c:210
#define ae2f_WhenC(...)
Appears when the current language is C++.
Definition Cxx.h:30
#define ae2f_WhenCXX(...)
Appears when the current language is C.
Definition Cxx.h:34
#define ae2f_NONE
Literally nothing.
Definition Cxx.h:13
#define ae2f_is_cxx
Definition Cxx.h:40
#define ae2f_float
Predefined floating point type.
Definition Float.auto.h:17
ae2f_float ae2f_float_t
Definition Float.h:38
int ae2f_CmpFunRet_t
A predefined returning data type for ae2f_fpCmp_t.
Definition Fun.h:19
#define ae2f_FREE(...)
Use this marker to show the desired functions to effectively free the resources.
Definition Guide.h:33
#define ae2f_LangVer_C
Definition LangVer.auto.h:2
#define __ae2f_lvcheck_cc(v)
#define ae2f_LangVer_CC
#define ae2f_stdcc_v
Definition LangVer.h:9
#define __ae2f_stdcheck_CC(v)
Definition LangVer.h:72
#define ae2f_stdc_v
Definition LangVer.h:44
#define ae2f_MAC_BUILD
Definition Util.h:4
#define __ae2f_mMMapSz_imp(v_mapsz, dim, lens)
Definition MMap.auto.h:153
#define ae2f_mMMapDimLen(mmap,...)
Length vector for every dimension index.
Definition MMap.auto.h:104
#define __ae2f_mMMapMk_imp(v_mk, dim, lens)
Definition MMap.auto.h:365
#define __ae2f_mMMapSz(dim, lens, ret)
Definition MMap.auto.h:183
#define __ae2f_mMMapInit_imp(v_init, mmap, dim, lens)
Definition MMap.auto.h:323
#define __ae2f_mMMapFieldIdx_imp(v_fidx, mmap, dim, idxs)
Definition MMap.auto.h:232
ae2f_extern ae2f_SHAREDCALL void ae2f_mMMapMk(const size_t dim, const size_t *const lens, ae2f_err_t *const opt_ret_err, ae2f_FREE(free, ae2f_mMMapDel) ae2f_mMMap **const ret_mmap) noexcept
ae2f_extern ae2f_SHAREDCALL void ae2f_mMMapSz(const size_t dim, const size_t *const lens, size_t *const ret)
Definition MMap.imp.c:9
ae2f_extern ae2f_SHAREDCALL void ae2f_mMMapDel(ae2f_mMMap *mmap)
Definition MMap.imp.c:46
ae2f_extern ae2f_SHAREDCALL void ae2f_mMMapInit(ae2f_mMMap *const mmap, const size_t dim, const size_t *const lens, ae2f_err_t *const opt_ret_err, size_t *const opt_ret_sz) noexcept
Definition MMap.imp.c:23
ae2f_extern ae2f_SHAREDCALL void ae2f_mMMapFieldIdx(const ae2f_mMMap *const mmap, const size_t dim, const size_t *const idxs, size_t *const ret)
Definition MMap.imp.c:14
#define ae2f_IS_APPLE
Definition Platform.h:19
#define ae2f_IS_WIN
Definition Platform.h:7
#define ae2f_IS_LINUX
Definition Platform.h:13
#define ae2f_errGlob_OK
The Operation you've wanted went successful.
Definition errGlob.h:23
#define ae2f_errGlob_ALLOC_FAILED
stdlib allocating functions (malloc, calloc, realloc) has been failed.
Definition errGlob.h:40
#define ae2f_errGlob_DONE_HOWEV
Means that error was not critical.
Definition errGlob.h:57
#define ae2f_errGlob_WRONG_OPERATION
Found that parameter sent by programmer is invalid. The operation may have been ceased while the midd...
Definition errGlob.h:45
uint8_t ae2f_err_t
Informs that this number represents the error.
Definition errGlob.h:19
#define ae2f_errGlob_PTR_IS_NULL
Failed to refer the pointer either l-value inside the function.
Definition errGlob.h:32
#define ae2f_errGlob_IMP_NOT_FOUND
Failed to find the function on preprocessor which is callable for some reason No operation has beed d...
Definition errGlob.h:28
#define __ae2f_MACRO_GENERATED
Definition Mlp.auto.h:2