All fine:
type
Matrix* = object
numRows* : int
numCol* : int
data : seq[float]
var m = newSeq[Matrix](3)
Run
Renaming the file to matrix.nim solved my problem. Thanks!
Do you have `Matrix` declared in `Matrix.nim` if so you're refering to the
module when you do `Matrix` so either rename the file to `matricies` or do
`Matrix.Matrix` to access the type, the former is more idiomatic.
I have a Matrix object defined as follows:
type
Matrix* = object
numRows* : int
numCol* : int
data : seq[float]
Run
When I call `newSeq[Matrix](3)` I get the error "Error: expression 'Matrix' has
no type (or is ambiguous)." What is