quil-lang / magicl

Matrix Algebra proGrams In Common Lisp.
BSD 3-Clause "New" or "Revised" License
238 stars 44 forks source link

Target argument for `scale`, `map` etc? #175

Open kchanqvq opened 2 years ago

kchanqvq commented 2 years ago

Is there a way to destructively output to a different tensor rather than the input tensor? scale! or map! doesn't seem to be capable of this.

stylewarning commented 2 years ago

Currently no, but it would be a welcome addition, since this is sometimes needed for efficiency.