152f09f925041d41782e05009bbf84d7d6cfdbc6/src/tech/v3/datatype.clj#L102">quick paths</a> to creating these:</p>
<pre><code class="language-clojure">user&gt; (require '[tech.v3.datatype :as dtype])
nil
user&gt; (dtype/make-reader :float32 5 idx)
[0.0 1.0 2.0 3.0 4.0]
user&gt; (dtype/make-reader :float32 5 (* 2 idx))
[0.0 2.0 4.0 6.0 8.0]
</code></pre>
<p>A read-only buffer only needs three methods - <code>elemwiseDatatype</code> (optional), <code>lsize</code>, and
<code>read[X]</code>.  <code>read[X]</code> i