// AddCustomField evaluates the user-defined custom field terms // and adds the result to dst. func AddCustomField(dst *data.Slice) { for _, term := range customTerms { buf := ValueOf(term) cuda.Add(dst, dst, buf) cuda.Recycle(buf) } }
func (b *thermField) AddTo(dst *data.Slice) { if !Temp.isZero() { b.update() cuda.Add(dst, dst, b.noise) } }