feat: initial release
Release / gates (push) Successful in 4m38s
Test / test (push) Successful in 5m16s
Release / release (push) Successful in 35s

Assisted-by: GLM 5.3 Flash
This commit is contained in:
2026-09-03 10:00:00 +02:00
commit af4ee19703
617 changed files with 191195 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
// SPDX-License-Identifier: MIT
package tensor
import "testing"
func mustFromFloatsT(t *testing.T, v float64) *Array {
t.Helper()
a, err := FromFloats([]float64{v}, 1)
if err != nil {
t.Fatal(err)
}
return a
}
func FromFloatsMustT(t *testing.T, vals []float64) *Array {
t.Helper()
a, err := FromFloats(vals, len(vals))
if err != nil {
t.Fatal(err)
}
return a
}