goplus / gop

The Go+ programming language is designed for engineering, STEM education, and data science. Our vision is to enable everyone to become a builder of the digital world.
https://goplus.org
Apache License 2.0
8.91k stars 546 forks source link

Vector, Matrix as native type #326

Open xushiwei opened 4 years ago

wangkuiyi commented 4 years ago

Should tensor be a native type or in a package? It seems that Python doesn't have a native type of Tensor, but the package numpy provides one (numpy.ndarray).

xushiwei commented 4 years ago

Not sure. I just think the following matrix literal:

[1, 2, 3; 4, 5, 6; 7, 8, 9]

It will create a matrix object. For this reason, it maybe is a native type.

Currently, this issue is only a feature request, without any design detail.

jianxu305 commented 4 years ago

I think something like numpy.ndarray is a must for data scientists. But it's probably too much for a language feature. It's better to be in NumGo+

xushiwei commented 4 years ago

I think something like numpy.ndarray is a must for data scientists. But it's probably too much for a language feature. It's better to be in NumGo+

I agree. See related issue https://github.com/qiniu/goplus/issues/385

LinboLen commented 2 years ago

Does it support Matrix inverse? image

LinboLen commented 2 years ago

😳😳😳 image

xushiwei commented 2 years ago

Does it support Matrix inverse?

Sure.