gop icon indicating copy to clipboard operation
gop copied to clipboard

Vector, Matrix as native type

Open xushiwei opened this issue 5 years ago • 7 comments

xushiwei avatar Jun 24 '20 14:06 xushiwei

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).

wangkuiyi avatar Jun 24 '20 19:06 wangkuiyi

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.

xushiwei avatar Jun 25 '20 03:06 xushiwei

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+

jianxu305 avatar Jul 05 '20 20:07 jianxu305

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

xushiwei avatar Jul 05 '20 21:07 xushiwei

Does it support Matrix inverse? image

LinboLen avatar Oct 28 '21 08:10 LinboLen

😳😳😳 image

LinboLen avatar Oct 28 '21 08:10 LinboLen

Does it support Matrix inverse?

Sure.

xushiwei avatar Oct 28 '21 11:10 xushiwei