This commit is contained in:
alex-s168
2024-10-30 18:00:49 +01:00
parent f0b2736af5
commit 4ed0225b4f
11 changed files with 115 additions and 3 deletions

View File

@@ -132,6 +132,9 @@ class ShortVec(private val initCap: Int = 0): Vec<Short>, BatchSequence<Short> {
array[index] = value
}
override fun idx(value: Short): Int =
array.indexOf(value)
companion object {
fun from(bytes: ShortArray) =
ShortVec(bytes.size).also {