R4P_sub_vector Function

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

Operator real(R4P) -.

 type(vector) :: pt(0:1)
 pt(1) = 1 * ex + 2 * ey + 1 * ez
 pt(0) = 2._R4P - pt(1)
 print "(3(F3.1,1X))", pt(0)%x, pt(0)%y, pt(0)%z

Arguments

TypeIntentOptionalAttributesName
real(kind=R4P), intent(in) :: lhs

Left hand side.

class(vector), intent(in) :: rhs

Right hand side.

Return Value type(vector)

Operator result.


Contents

None