Skip to content

Instantly share code, notes, and snippets.

@Deco
Last active August 29, 2015 14:15
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Deco/6dbc81ae3e05e038792d to your computer and use it in GitHub Desktop.
Save Deco/6dbc81ae3e05e038792d to your computer and use it in GitHub Desktop.
type MatD[ElementT] = object
n: int
m: int
#data:
#template matD(n,m: int, elementT: typedesc = float64): expr =
# MatD[elementT](n: n, m: m)
template matD(nv,mv: int, elementT: typedesc = float64): expr =
MatD[elementT](n: nv, m: mv)
var a = matD(4, 4) # nimis_math.nim(10, 12) Error: named expression expected
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment