Interface for matrix scaling by a vector
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(dbcsr_type), | intent(inout) | :: | matrix_a | |||
real(kind=real_4), | intent(in), | DIMENSION(:), TARGET, CONTIGUOUS | :: | alpha | ||
character(len=*), | intent(in) | :: | side |
SUBROUTINE dbcsr_scale_by_vector_s (matrix_a, alpha, side) !! Interface for matrix scaling by a vector TYPE(dbcsr_type), INTENT(INOUT) :: matrix_a REAL(kind=real_4), DIMENSION(:), INTENT(IN), TARGET, CONTIGUOUS :: alpha CHARACTER(LEN=*), INTENT(IN) :: side REAL(kind=real_4), DIMENSION(:), POINTER, CONTIGUOUS :: tmp_p TYPE(dbcsr_data_obj) :: enc_alpha_vec CALL dbcsr_data_init(enc_alpha_vec) CALL dbcsr_data_new(enc_alpha_vec, dbcsr_type_real_4) tmp_p => alpha CALL dbcsr_data_set_pointer(enc_alpha_vec, tmp_p) CALL dbcsr_scale_by_vector_anytype(matrix_a, enc_alpha_vec, side) CALL dbcsr_data_clear_pointer(enc_alpha_vec) CALL dbcsr_data_release(enc_alpha_vec) END SUBROUTINE dbcsr_scale_by_vector_s