Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
jcosborn committed Sep 6, 2023
1 parent b6a5878 commit db84145
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions src/maths/complexType.nim
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,19 @@ template numberType*[T](x: typedesc[ComplexProxy[T]]): typedesc =
numberType(T)
template numberType*[T](x: ComplexObj[T,T]): typedesc = numberType(T)
template numberType*[T](x: type ComplexObj[T,T]): typedesc = numberType(T)

template numNumbers*[TR,TI](x: ComplexObj[TR,TI]): auto =
mixin numNumbers
numNumbers(TR)+numNumbers(TI)
template numNumbers*[TR,TI](x: type ComplexObj[TR,TI]): auto =
mixin numNumbers
numNumbers(TR)+numNumbers(TI)
template numNumbers*[T](x: ComplexProxy[T]): auto =
mixin numNumbers
numNumbers(T)
template numNumbers*[TR,TI](x: ComplexObj[TR,TI]): auto =
template numNumbers*[T](x: type ComplexProxy[T]): auto =
mixin numNumbers
numNumbers(TR)+numNumbers(TI)
numNumbers(T)

template simdType*[T](x: ComplexObj[T,T]): typedesc =
mixin simdType
Expand Down

0 comments on commit db84145

Please sign in to comment.