<p>It's my first self-created project, so please let me know if I've screwed something up. My biggest focus was coding out a way to work across a specific axis with a function or a mapping function. </p>
<p>GoDoc: <a href="https://godoc.org/github.com/Kunde21/numgo">https://godoc.org/github.com/Kunde21/numgo</a></p>
<hr/>**评论:**<br/><br/>drewindo: <pre><p>Package-level documentation would be good. Documentation of what your types are <em>for</em> and the differences between them seems like a good candidate for inclusion.</p>
<p>You've got some nice examples of how to use the library on the github project page, why not include some of that as well?</p>
<p>Without really ripping into using it, I like your approach to method chaining error handling.</p></pre>SportingSnow21: <pre><p>Package docs are mysteriously absent (read: I completely forgot about it). I'll get working on them. </p></pre>DavidAmos: <pre><p>This is great. A few minor comments:</p>
<ul>
<li><p>The function that you call Map() might be better called Reduce() (or Fold()). Map() normally means a function like the one you call Apply().</p></li>
<li><p>There seems to be some common code in your Any() and All() functions that could be factored out, the same way that your Sum(), Min() and Max() functions are all factored through Map().</p></li>
<li><p>I think it would be slightly more idiomatic for your Createb() and Createf() functions to be called Newb() and Newf(), as NewXxx() is idiomatic Go for a function that returns an initialized object of some kind.</p></li>
</ul>
<p>Are you planning on adding linear algebra functions at some point (eg vector and matrix multiplication)?</p></pre>SportingSnow21: <pre><p>Thank you. Good input on the method names. Fold/Map makes more sense than Map/Apply and New is more idiomatic. </p>
<p>My biggest focus before opening this up was on the numerical side. The boolean is definitely raw. Input validation and a fold-style function are needed there.</p>
<p>I do plan on adding some vector and matrix operations and possibly some basic tensor operations. Very basic tensor ops, as they get complicated in a hurry and I haven't gotten very deep into that realm. </p></pre>
这是一个分享于 的资源,其中的信息可能已经有所发展或是发生改变。
入群交流(和以上内容无关):加入Go大咖交流群,或添加微信:liuxiaoyan-s 备注:入群;或加QQ群:692541889
- 请尽量让自己的回复能够对别人有帮助
- 支持 Markdown 格式, **粗体**、~~删除线~~、
`单行代码`
- 支持 @ 本站用户;支持表情(输入 : 提示),见 Emoji cheat sheet
- 图片支持拖拽、截图粘贴等方式上传