I have a Matrix object defined as follows:
type
Matrix* = object
numRows* : int
numCol* : int
data : seq[float]
When I call newSeq[Matrix](3) I get the error "Error: expression 'Matrix' has no type (or is ambiguous)." What is the reason for this?All fine:
type
Matrix* = object
numRows* : int
numCol* : int
data : seq[float]
var m = newSeq[Matrix](3)