SciRuby / daru

Data Analysis in RUby
BSD 2-Clause "Simplified" License
1.03k stars 139 forks source link

Fix Vector initialization when dtype is nmatrix, vector has nils and no nm_type is given (#153) #369

Closed baarkerlounger closed 7 years ago

baarkerlounger commented 7 years ago

Fixes https://github.com/SciRuby/daru/issues/153

Cyclomatic Complexity rubocop disabled for the cast_vector_to method as it seems necessary with that many possible case statement branches and the method is actually all that complex.