Skip to content

Instantly share code, notes, and snippets.

@kvalv
Created March 12, 2018 11:23
Show Gist options
  • Select an option

  • Save kvalv/23abcf7ba7a16c519ee4c336cc93ed50 to your computer and use it in GitHub Desktop.

Select an option

Save kvalv/23abcf7ba7a16c519ee4c336cc93ed50 to your computer and use it in GitHub Desktop.
float_matrix = np.random.randint(1, 100, size=(100, 100), dtype=np.float64)
int_matrix = np.array(float_matrix, np.int64) # alternatively use np.int8 also
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment