vector_sub_I2P Function

private elemental function vector_sub_I2P(lhs, rhs) result(opr)

Operator - integer(I2P).

 type(vector_R4P) :: pt(0:1)
 pt(1) = 1 * ex_R4P + 2 * ey_R4P + 1 * ez_R4P
 pt(0) = pt(1) - 3_I2P
 print "(3(F4.1,1X))", pt(0)%x, pt(0)%y, pt(0)%z

Arguments

TypeIntentOptionalAttributesName
class(vector_R4P), intent(in) :: lhs

Left hand side.

integer(kind=I2P), intent(in) :: rhs

Right hand side.

Return Value type(vector_R4P)

Operator result.


Contents

None