nngn
Loading...
Searching...
No Matches
anonymous_namespace{lua_math.cpp} Namespace Reference

Functions

lua_Integer hash (std::string_view s)
 
void gaussian_filter (lua_Integer size, lua_Number std_dev, bvec &v)
 
void gaussian_filter_f (lua_Integer size, lua_Number std_dev, fvec &v)
 
void gaussian_filter2d (lua_Integer xsize, lua_Integer ysize, lua_Number std_dev, bvec &v)
 
void gaussian_filter2d_f (lua_Integer xsize, lua_Integer ysize, lua_Number std_dev, fvec &v)
 
template<auto f, typename ... Args>
auto vec_fn (nngn::lua::table_view t, Args ...args, nngn::lua::state_view lua)
 
template<typename T , typename D >
void fill_rnd_vec_common (Math &m, std::size_t off, std::size_t n, std::vector< T > *v)
 
void fill_rnd_vec (Math &m, lua_Integer off, lua_Integer n, bvec *v)
 
void fill_rnd_vecf (Math &m, lua_Integer off, lua_Integer n, fvec *v)
 
auto mat_mul (fvec *dst, const fvec &src0, const fvec &src1, lua_Integer n)
 
void seed_rand (Math &m, lua_Integer s)
 
auto rand_float (Math &m)
 
auto int_dist (std::optional< lua_Integer > v0, std::optional< lua_Integer > v1)
 
auto rand_int (Math &m, std::optional< lua_Integer > v0, std::optional< lua_Integer > v1)
 
auto rand_mat (Math &m, lua_Integer n)
 
nngn::lua::table_view rand_table_common (Math &m, lua_Integer n, auto dist, nngn::lua::state_view lua)
 
nngn::lua::table_view rand_table (Math &m, lua_Integer n, std::optional< lua_Integer > v0, std::optional< lua_Integer > v1, nngn::lua::state_view lua)
 
nngn::lua::table_view rand_tablef (Math &m, lua_Integer n, nngn::lua::state_view lua)
 
void register_math (nngn::lua::table_view t)
 

Function Documentation

◆ fill_rnd_vec()

void anonymous_namespace{lua_math.cpp}::fill_rnd_vec ( Math m,
lua_Integer  off,
lua_Integer  n,
bvec v 
)
Here is the caller graph for this function:

◆ fill_rnd_vec_common()

template<typename T , typename D >
void anonymous_namespace{lua_math.cpp}::fill_rnd_vec_common ( Math m,
std::size_t  off,
std::size_t  n,
std::vector< T > *  v 
)
Here is the call graph for this function:

◆ fill_rnd_vecf()

void anonymous_namespace{lua_math.cpp}::fill_rnd_vecf ( Math m,
lua_Integer  off,
lua_Integer  n,
fvec v 
)
Here is the caller graph for this function:

◆ gaussian_filter()

void anonymous_namespace{lua_math.cpp}::gaussian_filter ( lua_Integer  size,
lua_Number  std_dev,
bvec v 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gaussian_filter2d()

void anonymous_namespace{lua_math.cpp}::gaussian_filter2d ( lua_Integer  xsize,
lua_Integer  ysize,
lua_Number  std_dev,
bvec v 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gaussian_filter2d_f()

void anonymous_namespace{lua_math.cpp}::gaussian_filter2d_f ( lua_Integer  xsize,
lua_Integer  ysize,
lua_Number  std_dev,
fvec v 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gaussian_filter_f()

void anonymous_namespace{lua_math.cpp}::gaussian_filter_f ( lua_Integer  size,
lua_Number  std_dev,
fvec v 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ hash()

lua_Integer anonymous_namespace{lua_math.cpp}::hash ( std::string_view  s)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ int_dist()

auto anonymous_namespace{lua_math.cpp}::int_dist ( std::optional< lua_Integer >  v0,
std::optional< lua_Integer >  v1 
)
Here is the caller graph for this function:

◆ mat_mul()

auto anonymous_namespace{lua_math.cpp}::mat_mul ( fvec dst,
const fvec src0,
const fvec src1,
lua_Integer  n 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rand_float()

auto anonymous_namespace{lua_math.cpp}::rand_float ( Math m)
Here is the caller graph for this function:

◆ rand_int()

auto anonymous_namespace{lua_math.cpp}::rand_int ( Math m,
std::optional< lua_Integer >  v0,
std::optional< lua_Integer >  v1 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rand_mat()

auto anonymous_namespace{lua_math.cpp}::rand_mat ( Math m,
lua_Integer  n 
)
Here is the caller graph for this function:

◆ rand_table()

nngn::lua::table_view anonymous_namespace{lua_math.cpp}::rand_table ( Math m,
lua_Integer  n,
std::optional< lua_Integer >  v0,
std::optional< lua_Integer >  v1,
nngn::lua::state_view  lua 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rand_table_common()

nngn::lua::table_view anonymous_namespace{lua_math.cpp}::rand_table_common ( Math m,
lua_Integer  n,
auto  dist,
nngn::lua::state_view  lua 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ rand_tablef()

nngn::lua::table_view anonymous_namespace{lua_math.cpp}::rand_tablef ( Math m,
lua_Integer  n,
nngn::lua::state_view  lua 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ register_math()

void anonymous_namespace{lua_math.cpp}::register_math ( nngn::lua::table_view  t)
Here is the call graph for this function:

◆ seed_rand()

void anonymous_namespace{lua_math.cpp}::seed_rand ( Math m,
lua_Integer  s 
)
Here is the caller graph for this function:

◆ vec_fn()

template<auto f, typename ... Args>
auto anonymous_namespace{lua_math.cpp}::vec_fn ( nngn::lua::table_view  t,
Args ...  args,
nngn::lua::state_view  lua 
)
Here is the call graph for this function:
Here is the caller graph for this function: