Note: Forums will be making significant UX changes to address key usability improvements surrounding search, discoverability and navigation. To learn more about these changes please visit the announcement which can be found HERE.

问题 arange

  • 2011年10月26日 13:15
     
     

    is there an arange() function equivalent in sho, that is, a range() function that excepts not only int but float as inputs?

全部回复

  • 2011年11月8日 0:04
     
      包含代码
    >>> y = DoubleArray.From(drange(2, 3, 0.2))
    >>> y
    [ 2.0000  2.2000  2.4000  2.6000  2.8000  3.0000]

    Make sure you check the Book of Sho also.