Change return value of method setParameter()
Add 1D and single precision versions of the methods