Matrix printing module
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 |
general interface for printing a one or two dimensional array will be deprecated
print a vector
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | vec(:) | |||
character(len=*), | intent(in), | optional | :: | format_type |
print a matrix in a given format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | mat(:,:) | |||
character(len=*), | intent(in), | optional | :: | format_type |
general interface to print an array within certain bounds
print a vector from start up to n_elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | vec(:) | |||
integer(kind=default_int), | intent(in) | :: | n_elements | |||
character(len=*), | intent(in), | optional | :: | format_type |
Print a matrix of n_cols by n_rows
Type | Intent | Optional | 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 |
print a matrix in a given format
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | mat(:,:) | |||
character(len=*), | intent(in), | optional | :: | format_type |
private subroutine to print a matrix in format
Type | Intent | Optional | 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 |
Print a matrix of n_cols by n_rows
Type | Intent | Optional | 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 that prints a plain matrix of n_cols by n_rows
Type | Intent | Optional | 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 that prints a vector of n_elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | vec(:) | |||
integer(kind=default_int), | intent(in), | optional | :: | n_elements |
print a vector
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | vec(:) | |||
character(len=*), | intent(in), | optional | :: | format_type |
private subroutine that prints a vector in a format
Type | Intent | Optional | 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 |
print a vector from start up to n_elements
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in) | :: | vec(:) | |||
integer(kind=default_int), | intent(in) | :: | n_elements | |||
character(len=*), | intent(in), | optional | :: | format_type |