feat: initial release
Assisted-by: GLM 5.3 Flash
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
// Copyright (c) 2026 Petr Balvín <opensource@petrbalvin.org> (https://petrbalvin.org)
|
||||
// SPDX-License-Identifier: MIT
|
||||
|
||||
package linalg
|
||||
|
||||
import (
|
||||
"testing"
|
||||
)
|
||||
|
||||
// TestDetFloat32Input moved with Det from the root package: the linear
|
||||
// algebra kernels compute in float64 even from float32 inputs.
|
||||
func TestDetFloat32Input(t *testing.T) {
|
||||
det, err := Det(mustFromFloat32s(t, []float32{1, 2, 3, 4}, 2, 2))
|
||||
if err != nil || det != -2 {
|
||||
t.Fatalf("Det float32: %v %v", det, err)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user