Created by: LutaoChu
Bug fixes
APIs
remove special treatment of one-dimensional input add check for one-dimensional input