stdlib-js / stdlib-js/stdlib

[RFC]: Array Matrix Math (Possible? Documentation?)

未关闭
#445 2 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
Feature RFC
主要语言
JavaScript
星标
6k
派生
1.3k
平均合并
1 天 3 小时
30 天内合并 PR
611

描述

### Description

One of the nice (if not obligatory) features of Numpy is the ability to perform basic arithmetic on ndarrays ... (e.g. ``` array1+array2 ```) [Granted, the reason this is relatively easy to implement in Python is because allows you to provide methods to handle the use of operators... I don't think JavaScript has the same option?]

Is there a way to do this with stdlib arrays (of any kind)? Right now, doing an ```array1+array2``` results in ```NaN```. I searched the documentation and could not find a thing on this.

At a minimum, I think a "quick start" or a cheatsheet type document would be *extraordinarily* helpful. Especially a "stdlib math for Numpy users" type document demonstrating some basics... something like:
* ```array = np.array([1,2,3,4])``` == ```var array = array([1,2,3,4]);```
* ```array.max()``` == ```???```
* ```array1+array2``` == ```???```
* etc.

### Related Issues

_No response_

### Questions

_No response_

### Other

No.

### Checklist

- [X] I have read and understood the [Code of Conduct](https://github.com/stdlib-js/stdlib/blob/develop/CODE_OF_CONDUCT.md).
- [X] Searched for existing issues and pull requests.
- [X] The issue name begins with `RFC:`.

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。