Calculate the absoulte of a vector elementwise
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(vector), | intent(in) | :: | this |
Input vector |
type(vector) pure elemental function abs_vec(this) !! Calculate the absoulte of a vector elementwise !> Input vector type(vector), intent(IN) :: this abs_vec = vector(abs(this%x), abs(this%y), abs(this%z)) end function abs_vec