阅读背景:

如何减去两个无符号的numpy数组以给出一个带符号的结果?

来源:互联网 

I would like to subtract two unsigned numpy arrays and get a signed result. I don't know the types in advance. Casting both to int64 works, but this needlessly wastes space if the inputs are uint8 (casting to int16 would suffice).I would like to subtract two unsigned numpy arr




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: