Sorting the rows of a matrix does not work. The values are ordered [1, 10, 11, 2, 3, 4, 5] and not as I expected.

This happens when you sort a StringMatrix with numbers in it. Use convert(ValueType.DOUBLE) to transform the matrix into a DoubleMatrix before sorting.

  • del.icio.us
  • Google Bookmarks
  • MisterWong
  • Facebook
  • Digg
  • DZone
  • Slashdot
  • StumbleUpon
  • Technorati
  • Yahoo! Buzz
  • email
  • Print

Leave a Reply

You must be logged in to post a comment.