From 68231e5f4a7951b100fc4d4f7521785c78c4ef19 Mon Sep 17 00:00:00 2001 From: Simon Parten Date: Wed, 27 Sep 2023 23:43:42 +0200 Subject: [PATCH] ahhh --- core/shared/src/main/scala/vecxt/dim.check.scala | 3 ++- core/shared/src/main/scala/vecxt/vector.scala | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/core/shared/src/main/scala/vecxt/dim.check.scala b/core/shared/src/main/scala/vecxt/dim.check.scala index bba2f42..5d433fb 100644 --- a/core/shared/src/main/scala/vecxt/dim.check.scala +++ b/core/shared/src/main/scala/vecxt/dim.check.scala @@ -18,6 +18,7 @@ package vecxt import ai.dragonfly.math.UnsupportedVectorDimension -object dimCheck : +object dimCheck: inline def dimensionCheck(supplied: Int, required: Int): Unit = if supplied != required then throw UnsupportedVectorDimension(supplied, required) +end dimCheck diff --git a/core/shared/src/main/scala/vecxt/vector.scala b/core/shared/src/main/scala/vecxt/vector.scala index 955e482..2742c4c 100644 --- a/core/shared/src/main/scala/vecxt/vector.scala +++ b/core/shared/src/main/scala/vecxt/vector.scala @@ -50,6 +50,7 @@ package object vector: import ai.dragonfly.math.vector.Vec.+ thisVector + thatVector.asInstanceOf[Vec[N]] end `+!` + end extension end dynamic object logical: