September 2017 Update
This commit is contained in:
parent
bba7bfd280
commit
ba8067c3b7
14570 changed files with 153136 additions and 63871 deletions
17
Task/Matrix-arithmetic/Go/matrix-arithmetic-4.go
Normal file
17
Task/Matrix-arithmetic/Go/matrix-arithmetic-4.go
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
"github.com/gonum/matrix/mat64"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fmt.Println(mat64.Det(mat64.NewDense(2, 2, []float64{
|
||||
1, 2,
|
||||
3, 4})))
|
||||
fmt.Println(mat64.Det(mat64.NewDense(3, 3, []float64{
|
||||
2, 9, 4,
|
||||
7, 5, 3,
|
||||
6, 1, 8})))
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue