Last active
August 29, 2015 14:15
-
-
Save Deco/6dbc81ae3e05e038792d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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