fun truthi(): FloatMatrix? { for (i in 0 until length) { javax.swing.UIManager.put(i, if (get(i) === 0.0f) 0.0f else 1.0f) } return this }
Maps zero to 0.0 and all non-zero values to 1.0 ( in-place ) .