pic_matrix_printer Module

Matrix printing module


Uses

  • module~~pic_matrix_printer~~UsesGraph module~pic_matrix_printer pic_matrix_printer module~pic_string_utils pic_string_utils module~pic_matrix_printer->module~pic_string_utils module~pic_types pic_types module~pic_matrix_printer->module~pic_types module~pic_string_utils->module~pic_types iso_fortran_env iso_fortran_env module~pic_types->iso_fortran_env

Used by

  • module~~pic_matrix_printer~~UsedByGraph module~pic_matrix_printer pic_matrix_printer module~pic_debugging_tools pic_debugging_tools module~pic_debugging_tools->module~pic_matrix_printer

Variables

Type Visibility Attributes Name Initial
character(len=*), private, parameter :: fmt_edge = "(F14.10)"

no comma format

character(len=*), private, parameter :: fmt_in = '(F14.10, ", ")'

comma format for between arrays


Interfaces

public interface print_array

general interface for printing a one or two dimensional array will be deprecated

  • private subroutine print_vector(vec, format_type)

    print a vector

    Arguments

    Type IntentOptional Attributes Name
    real(kind=dp), intent(in) :: vec(:)
    character(len=*), intent(in), optional :: format_type
  • private subroutine print_matrix(mat, format_type)

    print a matrix in a given format

    Arguments

    Type IntentOptional Attributes Name
    real(kind=dp), intent(in) :: mat(:,:)
    character(len=*), intent(in), optional :: format_type

public interface print_array_with_bounds

general interface to print an array within certain bounds

  • private subroutine print_vector_n(vec, n_elements, format_type)

    print a vector from start up to n_elements

    Arguments

    Type IntentOptional Attributes Name
    real(kind=dp), intent(in) :: vec(:)
    integer(kind=default_int), intent(in) :: n_elements
    character(len=*), intent(in), optional :: format_type
  • private subroutine print_matrix_m_n(mat, n_cols, n_rows, format_type)

    Print a matrix of n_cols by n_rows

    Arguments

    Type IntentOptional Attributes Name
    real(kind=dp), intent(in) :: mat(:,:)
    integer(kind=default_int), intent(in) :: n_cols
    integer(kind=default_int), intent(in) :: n_rows
    character(len=*), intent(in), optional :: format_type

Subroutines

private subroutine print_matrix(mat, format_type)

print a matrix in a given format

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: mat(:,:)
character(len=*), intent(in), optional :: format_type

private subroutine print_matrix_in_format(mat, format_type, n_cols, n_rows)

private subroutine to print a matrix in format

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: mat(:,:)
character(len=*), intent(in) :: format_type

format can be mathematica or numpy

integer(kind=default_int), intent(in), optional :: n_cols
integer(kind=default_int), intent(in), optional :: n_rows

private subroutine print_matrix_m_n(mat, n_cols, n_rows, format_type)

Print a matrix of n_cols by n_rows

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: mat(:,:)
integer(kind=default_int), intent(in) :: n_cols
integer(kind=default_int), intent(in) :: n_rows
character(len=*), intent(in), optional :: format_type

private subroutine print_plain_matrix(mat, n_cols, n_rows)

private subroutine that prints a plain matrix of n_cols by n_rows

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: mat(:,:)
integer(kind=default_int), intent(in), optional :: n_cols
integer(kind=default_int), intent(in), optional :: n_rows

private subroutine print_plain_vector(vec, n_elements)

private subroutine that prints a vector of n_elements

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: vec(:)
integer(kind=default_int), intent(in), optional :: n_elements

private subroutine print_vector(vec, format_type)

print a vector

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: vec(:)
character(len=*), intent(in), optional :: format_type

private subroutine print_vector_in_format(vec, format_type, n_elements)

private subroutine that prints a vector in a format

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: vec(:)
character(len=*), intent(in) :: format_type

format can be mathematica or numpy

integer(kind=default_int), intent(in), optional :: n_elements

private subroutine print_vector_n(vec, n_elements, format_type)

print a vector from start up to n_elements

Arguments

Type IntentOptional Attributes Name
real(kind=dp), intent(in) :: vec(:)
integer(kind=default_int), intent(in) :: n_elements
character(len=*), intent(in), optional :: format_type