Raise column to a power
@param[in,out] df The data frame instance @param[in] col_index Index of the column @param[in] power The exponent to raise each value to
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(data_frame), | intent(inout) | :: | df | |||
integer, | intent(in) | :: | col_index | |||
real(kind=rk), | intent(in) | :: | power |
subroutine df_pow_column(df, col_index, power) type(data_frame), intent(inout) :: df integer, intent(in) :: col_index real(rk), intent(in) :: power real(rk), dimension(:), allocatable :: col col = df_get_col_real(df, col_index) col = col**power call df_set_col_real(df, col_index, col) end subroutine df_pow_column