gtool5 Fortran 90/95 ライブラリ 1.0.0-rc5
English
Loading...
Searching...
No Matches
dc_scaledsec::operator(==) Interface Reference

Public Member Functions

logical function dcscaledsec_eq_ss (sclsec1, sclsec2)
logical function dcscaledsec_eq_si (sclsec, sec)
logical function dcscaledsec_eq_is (sec, sclsec)
logical function dcscaledsec_eq_sr (sclsec, sec)
logical function dcscaledsec_eq_rs (sec, sclsec)
logical function dcscaledsec_eq_sd (sclsec, sec)
logical function dcscaledsec_eq_ds (sec, sclsec)

Detailed Description

Definition at line 149 of file dc_scaledsec.f90.

Member Function/Subroutine Documentation

◆ dcscaledsec_eq_ds()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_ds ( real(dp), intent(in) sec,
type(dc_scaled_sec), intent(in) sclsec )

Definition at line 610 of file dc_scaledsec.f90.

611 implicit none
612 real(DP), intent(in):: sec
613 type(DC_SCALED_SEC), intent(in):: sclsec
614 type(DC_SCALED_SEC):: sclsec2
615 continue
616 sclsec2 = sec
617 result = sclsec == sclsec2

◆ dcscaledsec_eq_is()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_is ( integer, intent(in) sec,
type(dc_scaled_sec), intent(in) sclsec )

Definition at line 564 of file dc_scaledsec.f90.

565 implicit none
566 integer, intent(in):: sec
567 type(DC_SCALED_SEC), intent(in):: sclsec
568 continue
569 result = sclsec == sec

◆ dcscaledsec_eq_rs()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_rs ( real, intent(in) sec,
type(dc_scaled_sec), intent(in) sclsec )

Definition at line 586 of file dc_scaledsec.f90.

587 implicit none
588 real, intent(in):: sec
589 type(DC_SCALED_SEC), intent(in):: sclsec
590 type(DC_SCALED_SEC):: sclsec2
591 continue
592 sclsec2 = sec
593 result = sclsec == sclsec2

◆ dcscaledsec_eq_sd()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_sd ( type(dc_scaled_sec), intent(in) sclsec,
real(dp), intent(in) sec )

Definition at line 598 of file dc_scaledsec.f90.

599 implicit none
600 type(DC_SCALED_SEC), intent(in):: sclsec
601 real(DP), intent(in):: sec
602 type(DC_SCALED_SEC):: sclsec2
603 continue
604 sclsec2 = sec
605 result = sclsec == sclsec2

◆ dcscaledsec_eq_si()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_si ( type(dc_scaled_sec), intent(in) sclsec,
integer, intent(in) sec )

Definition at line 530 of file dc_scaledsec.f90.

531 implicit none
532 type(DC_SCALED_SEC), intent(in):: sclsec
533 integer, intent(in):: sec
534 type(DC_SCALED_SEC):: sclsec2
535 integer:: i, sec1
536 continue
537 if ( sclsec % flag_negative .and. .not. sec < 0 ) then
538 result = .false.
539 return
540 elseif ( .not. sclsec % flag_negative .and. sec < 0 ) then
541 result = .false.
542 return
543 end if
544
545 if ( abs(sec) > scale_factor_int_xx(3) ) then
546 sclsec2 = sec
547 result = sclsec == sclsec2
548 else
549 if ( .not. all( sclsec % sec_ary(imin:-1) == (/0, 0/) ) &
550 & .or. .not. all( sclsec % sec_ary(3:imax) == (/0, 0, 0, 0, 0, 0/) ) ) then
551 result = .false.
552 return
553 end if
554 sec1 = sclsec % sec_ary(0)
555 do i = 1, 2
556 sec1 = sec1 + sclsec % sec_ary(i) * scale_factor_int_xx(i)
557 end do
558 result = sec1 == sec
559 end if

◆ dcscaledsec_eq_sr()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_sr ( type(dc_scaled_sec), intent(in) sclsec,
real, intent(in) sec )

Definition at line 574 of file dc_scaledsec.f90.

575 implicit none
576 type(DC_SCALED_SEC), intent(in):: sclsec
577 real, intent(in):: sec
578 type(DC_SCALED_SEC):: sclsec2
579 continue
580 sclsec2 = sec
581 result = sclsec == sclsec2

◆ dcscaledsec_eq_ss()

logical function dc_scaledsec::operator(==)::dcscaledsec_eq_ss ( type(dc_scaled_sec), intent(in) sclsec1,
type(dc_scaled_sec), intent(in) sclsec2 )

2つの DC_SCALED_SEC 型変数の等値比較

Parameters
[in]sclsec11番目の DC_SCALED_SEC 型変数
[in]sclsec22番目の DC_SCALED_SEC 型変数
Returns
等しければ .true., そうでなければ .false.

Definition at line 503 of file dc_scaledsec.f90.

504 implicit none
505 type(DC_SCALED_SEC), intent(in):: sclsec1, sclsec2
506
507 integer:: i
508 continue
509 if ( sclsec1 % flag_negative .and. .not. sclsec2 % flag_negative ) then
510 result = .false.
511
512 return
513 elseif ( .not. sclsec1 % flag_negative .and. sclsec2 % flag_negative ) then
514 result = .false.
515 return
516 end if
517
518 do i = imax, imin, -1
519 if ( .not. sclsec1 % sec_ary(i) == sclsec2 % sec_ary(i) ) then
520 result = .false.
521 return
522 end if
523 end do
524
525 result = .true.

The documentation for this interface was generated from the following file: