Skip to content

Commit

Permalink
inline newVector
Browse files Browse the repository at this point in the history
  • Loading branch information
HugoGranstrom committed Jun 29, 2019
1 parent 117ec17 commit 1e21a12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/numericalnim/utils.nim
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ type
components*: seq[T]
len*: int

proc newVector*[T](components: openArray[T]): Vector[T] =
proc newVector*[T](components: openArray[T]): Vector[T] {.inline.} =
return Vector[T](components: @components, len: components.len)

proc checkVectorSizes*(v1, v2: Vector) {.inline.} =
Expand Down

0 comments on commit 1e21a12

Please sign in to comment.