pub fn exp2<T, D>(input: &Array<T, D>) -> Result<Array<T, D>, FerrayError>where T: Element + Float + CrMath, D: Dimension,
Elementwise 2^x.