Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Quafadas committed Nov 6, 2023
1 parent 66e0ef1 commit 4754d04
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 161 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,12 @@
* limitations under the License.
*/

@main
def hi = println("Hello world!")
package vecxt

object dimCheck:
inline def apply[A, B](a: Array[A], b : Array[B]) =
if a.length != b.length then throw UnsupportedVectorDimension(a.length, b.length)

case class UnsupportedVectorDimension(givenDimension:Int, requiredDimension:Int) extends Exception(
s"Expected Vector dimensions to match. First dimension was : $requiredDimension, second was : $givenDimension ."
)
3 changes: 0 additions & 3 deletions core/shared/src/main/scala/vecxt/limit.rpt.scala
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,6 @@

package vexct

/*
These opaque types prevent boxing?
*/
import vexct.Retentions.*

object Limits:
Expand Down
68 changes: 0 additions & 68 deletions core/shared/src/main/scala/vecxt/package.scala

This file was deleted.

88 changes: 0 additions & 88 deletions core/shared/src/main/scala/vecxt/vector.scala

This file was deleted.

0 comments on commit 4754d04

Please sign in to comment.