nngn
Loading...
Searching...
No Matches
common.lua File Reference

Functions

local function vec_eq (v0, v1)
 
local function print_vec (v)
 
local function print_mat (m, w, h)
 
local function print_prof (t)
 
local function avg_prof (n, f)
 
local function round_up (x, n)
 
local function round_down_pow2 (n)
 
local function local_size (global, desired)
 
local function err_check (v0, v1, epsilon)
 

Variables

local utils = require "nngn.lib.utils"
 
 vec_eq = vec_eq
 
 print_vec = print_vec
 
 print_mat = print_mat
 
 print_prof = print_prof
 
 avg_prof = avg_prof
 
 round_up = round_up
 
 round_down_pow2 = round_down_pow2
 
 local_size = local_size
 
 err_check = err_check
 

Function Documentation

◆ avg_prof()

local function avg_prof ( n ,
f  )

◆ err_check()

local function err_check ( v0 ,
v1 ,
epsilon  )

◆ local_size()

local function local_size ( global ,
desired  )

◆ print_mat()

local function print_mat ( m ,
w ,
h  )

◆ print_prof()

local function print_prof ( t )

◆ print_vec()

local function print_vec ( v )

◆ round_down_pow2()

local function round_down_pow2 ( n )

◆ round_up()

local function round_up ( x ,
n  )

◆ vec_eq()

local function vec_eq ( v0 ,
v1  )

Variable Documentation

◆ avg_prof

avg_prof = avg_prof

◆ err_check

err_check = err_check

◆ local_size

local_size = local_size

◆ print_mat

print_mat = print_mat

◆ print_prof

print_prof = print_prof

◆ print_vec

print_vec = print_vec

◆ round_down_pow2

round_down_pow2 = round_down_pow2

◆ round_up

round_up = round_up

◆ utils

local utils = require "nngn.lib.utils"

◆ vec_eq

vec_eq = vec_eq