File: main.go

package info (click to toggle)
python-peachpy 0.0~git20211013.257881e-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,452 kB
  • sloc: python: 29,286; ansic: 54; makefile: 44; cpp: 31
file content (17 lines) | stat: -rw-r--r-- 260 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
package blas
import "fmt"

func main() {
	x := make([]float32, 2048)
	y := make([]float32, len(x))
	for i := 0; i < len(x); i++ {
		x[i] = 2.0
		y[i] = 3.0
	}

	z := DotProduct(&x[0], &y[0], uint(len(x)))

	fmt.Println("hello world")
	fmt.Println("z =", z)
}