RosettaCodeData/Task/Matrix-arithmetic/Go/matrix-arithmetic-3.go
2017-09-25 22:28:19 +02:00

17 lines
315 B
Go

package main
import (
"fmt"
"github.com/skelterjohn/go.matrix"
)
func main() {
fmt.Println(matrix.MakeDenseMatrixStacked([][]float64{
{1, 2},
{3, 4}}).Det())
fmt.Println(matrix.MakeDenseMatrixStacked([][]float64{
{2, 9, 4},
{7, 5, 3},
{6, 1, 8}}).Det())
}