81 lines
497 B
Julia
81 lines
497 B
Julia
module GeneralUtils
|
|
|
|
|
|
export noNegative!, randomWithProb, randomChoiceWithProb, findIndex, limitvalue
|
|
|
|
|
|
include("interface.jl")
|
|
using .interface
|
|
|
|
|
|
#------------------------------------------------------------------------------------------------100
|
|
|
|
""" version 0.0.3
|
|
Todo:
|
|
- [*1] cartesianAssign for different matrix dimension
|
|
|
|
Change from version: 0.0.2
|
|
-
|
|
|
|
All features
|
|
|
|
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
end # generalUtils |