LoginSignup
0
0

More than 1 year has passed since last update.

[py2rb] numpy array copy=False

Posted at

はじめに

移植やってます。

numpy (Python)

import numpy as np
x = np.array(x, copy=False)

Falsefalseに替えればいいんだよね。

false (Ruby)

require 'numpy'
x = Numpy.array(x, copy=false)

# Cannot interpret 'False' as a data type

ぐぬぬ。

False (Ruby)

x = Numpy.array(x, copy=False)

uninitialized constant False (NameError)
Did you mean?  FALSE

FALSEやないわい。

nil (ruby)

x = Numpy.array(x, copy=nil)

どうやらnilが正解らしい。

メモ

  • Python の numpy を学習した
  • 道のりは遠そう
0
0
0

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
0
0