added single value constructor for floatX