42 USE :: iso_fortran_env
45 INTEGER,
INTENT(IN) :: mtx_size
46 REAL(KIND=c_float),
DIMENSION(mtx_size, mtx_size),
INTENT(IN) :: a, b
47 REAL(KIND=c_float),
DIMENSION(mtx_size, mtx_size),
INTENT(OUT) :: c
53 USE :: iso_fortran_env
56 INTEGER,
INTENT(IN) :: mtx_size
57 INTEGER(C_INT),
DIMENSION(mtx_size, mtx_size),
INTENT(IN) :: A, B
58 INTEGER(C_INT),
DIMENSION(mtx_size, mtx_size),
INTENT(OUT) :: C
70 SUBROUTINE mtx_mult(matrix1, matrix2, result, nrows1, ncols1, ncols2)
72 INTEGER,
INTENT(IN) :: nrows1, ncols1, ncols2
73 REAL,
INTENT(IN) :: matrix1(nrows1, ncols1), matrix2(ncols1, ncols2)
74 REAL,
INTENT(OUT) :: result(nrows1, ncols2)
82 result(i, j) = result(i, j) + matrix1(i, k)*matrix2(k, j)
void mtx_mult(std::vector< double > A, std::vector< double > B, std::vector< double > C)
subroutine mtx_add_routine_float_(A, B, C, mtx_size)
FORTRAN Subroutine for Matrix Addition on flattened matrices as arrays of type float32....
subroutine mtx_add_routine_int_(A, B, C, mtx_size)
FORTRAN Subroutine for Matrix Addition on flattened matrices as arrays of type int32....