Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_type), | intent(inout) | :: | matrix_a | |||
type(dbcsr_type), | intent(in) | :: | matrix_b | |||
complex(kind=real_4), | intent(in) | :: | alpha_scalar | |||
complex(kind=real_4), | intent(in) | :: | beta_scalar |
SUBROUTINE dbcsr_add_c(matrix_a, matrix_b, alpha_scalar, beta_scalar) TYPE(dbcsr_type), INTENT(INOUT) :: matrix_a TYPE(dbcsr_type), INTENT(IN) :: matrix_b COMPLEX(real_4), INTENT(IN) :: alpha_scalar, beta_scalar CHARACTER(len=*), PARAMETER :: routineN = 'dbcsr_add_c' INTEGER :: handle CALL timeset(routineN, handle) IF (dbcsr_get_data_type(matrix_a) .EQ. dbcsr_type_complex_4 .AND. & dbcsr_get_data_type(matrix_b) .EQ. dbcsr_type_complex_4) THEN CALL dbcsr_add_anytype(matrix_a, matrix_b, & alpha_scalar=dbcsr_scalar(alpha_scalar), & beta_scalar=dbcsr_scalar(beta_scalar)) ELSE DBCSR_ABORT("Invalid combination of data type, NYI") END IF CALL timestop(handle) END SUBROUTINE dbcsr_add_c