Beispiel #1
0
func divN1(dst, a, b *data.Slice) {
	util.Assert(dst.NComp() == a.NComp())
	util.Assert(b.NComp() == 1)
	for c := 0; c < dst.NComp(); c++ {
		cuda.Div(dst.Comp(c), a.Comp(c), b)
	}
}
Beispiel #2
0
func divNN(dst, a, b *data.Slice) {
	cuda.Div(dst, a, b)
}