LoginSignup
1

More than 5 years have passed since last update.

備忘録メモ:組み込み関数sumとnumpy.sumの違い

Last updated at Posted at 2018-08-30

違いあるの?

答え:あるらしい
以下ブログで詳細ありますが、リストの数値和の場合は組み込み関数sumで、numpy.arrayの場合はnumpy.sumの方が早いらしい、、、
http://szdr.hatenablog.com/entry/2017/01/03/184013

あとnumpy.sumなら行毎,列毎の合計ができるので、ちょっと便利。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1