-
-
Save ryantm/290f013f89121dcdd17416dc2e83da07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
matrix_zero_default = NMatrix.new(matrix_with_nan.shape, 0.0, stype: :yale) | |
matrix_with_nan.each_stored_with_indices do |val, i, j| | |
matrix_zero_default[i,j] = val | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment