FE-Project
Loading...
Searching...
No Matches
scale_sparsemat::sparsemat_matmul Interface Reference

Public Member Functions

subroutine sparsemat_matmul1 (a, b, c)
subroutine sparsemat_matmul2 (a, b, c)

Detailed Description

Definition at line 57 of file scale_sparsemat.F90.

Member Function/Subroutine Documentation

◆ sparsemat_matmul1()

subroutine scale_sparsemat::sparsemat_matmul::sparsemat_matmul1 ( type(sparsemat), intent(in) a,
real(rp), dimension(:), intent(in) b,
real(rp), dimension(a%m), intent(out) c )

Definition at line 343 of file scale_sparsemat.F90.

344 implicit none
345
346 type(sparsemat), intent(in) :: A
347 real(RP), intent(in ) :: b(:)
348 real(RP), intent(out) :: c(A%M)
349
350 !---------------------------------------------------------------------------
351
352 select case( a%storage_format_id )
353 case( sparsemat_storage_typeid_csr )
354 call sparsemat_matmul_csr_1( a%val, a%colIdx, a%rowPtr, b, c, &
355 a%M, a%N, a%nnz, a%rowPtrSize )
356 case( sparsemat_storage_typeid_ell )
357 call sparsemat_matmul_ell_1( a%val, a%colIdx, b, c, &
358 a%M, a%N, a%nnz, a%col_size )
359 end select
360
361 return

References scale_sparsemat::sparsemat_storage_typeid_csr, and scale_sparsemat::sparsemat_storage_typeid_ell.

◆ sparsemat_matmul2()

subroutine scale_sparsemat::sparsemat_matmul::sparsemat_matmul2 ( type(sparsemat), intent(in) a,
real(rp), dimension(:,:), intent(in) b,
real(rp), dimension(size(b,1),a%m), intent(out) c )

Definition at line 365 of file scale_sparsemat.F90.

366 implicit none
367
368 type(sparsemat), intent(in) :: A
369 real(RP), intent(in ) :: b(:,:)
370 real(RP), intent(out) :: c(size(b,1),A%M)
371
372 !---------------------------------------------------------------------------
373
374 select case( a%storage_format_id )
375 case( sparsemat_storage_typeid_csr )
376 call sparsemat_matmul_csr_2( a%val, a%colIdx, a%rowPtr, b, c, &
377 a%M, a%N, a%nnz, a%rowPtrSize, size(b,1) )
378 case( sparsemat_storage_typeid_ell )
379 call sparsemat_matmul_ell_2( a%val, a%colIdx, b, c, &
380 a%M, a%N, a%nnz, a%col_size, size(b,1) )
381 end select
382
383 return

References scale_sparsemat::sparsemat_storage_typeid_csr, and scale_sparsemat::sparsemat_storage_typeid_ell.


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