Afivo  0.3
Data Types | Functions/Subroutines | Variables
m_npy Module Reference

Data Types

interface  save_npy
 

Functions/Subroutines

subroutine run_sys (cmd, stat)
 
subroutine, public add_to_zip (zipfile, filename, keep_file, custom_name)
 
subroutine, public remove_file (filename)
 
character(len=:) function, allocatable dict_str (var_type, var_shape)
 
character(len=:) function, allocatable shape_str (var_shape)
 
subroutine write_header (p_un, var_type, var_shape)
 
subroutine write_cmplx_sgn_mtx (filename, mtx)
 
subroutine write_cmplx_sgn_vec (filename, vec)
 
subroutine write_cmplx_dbl_6dt (filename, tensor)
 
subroutine write_cmplx_dbl_5dt (filename, tensor)
 
subroutine write_cmplx_dbl_4dt (filename, tensor)
 
subroutine write_cmplx_dbl_3dt (filename, tensor)
 
subroutine write_cmplx_dbl_mtx (filename, mtx)
 
subroutine write_cmplx_dbl_vec (filename, vec)
 
subroutine write_sng_3dt (filename, tensor)
 
subroutine write_sng_4dt (filename, tensor)
 
subroutine write_sng_mtx (filename, mtx)
 
subroutine write_sng_vec (filename, vec)
 
subroutine write_dbl_3dt (filename, tensor)
 
subroutine write_dbl_4dt (filename, tensor4)
 
subroutine write_dbl_5dt (filename, tensor5)
 
subroutine write_dbl_mtx (filename, mtx)
 
subroutine write_dbl_vec (filename, vec)
 
subroutine write_int64_mtx (filename, mtx)
 
subroutine write_int64_vec (filename, vec)
 
subroutine write_int32_mtx (filename, mtx)
 
subroutine write_int32_3d (filename, mtx)
 
subroutine write_int32_vec (filename, vec)
 
subroutine write_int16_mtx (filename, mtx)
 
subroutine write_int16_vec (filename, vec)
 
subroutine write_int8_mtx (filename, mtx)
 
subroutine write_int8_3d (filename, mtx)
 
subroutine write_int8_vec (filename, vec)
 

Variables

character(len= *), parameter npy_suffix = '.npy'
 

Function/Subroutine Documentation

◆ run_sys()

subroutine m_npy::run_sys ( character(len=*), intent(in)  cmd,
integer(int32), intent(out)  stat 
)
private

Definition at line 34 of file m_npy.f90.

◆ add_to_zip()

subroutine, public m_npy::add_to_zip ( character(len=*), intent(in)  zipfile,
character(len=*), intent(in)  filename,
logical, intent(in)  keep_file,
character(len=*), intent(in), optional  custom_name 
)

Definition at line 42 of file m_npy.f90.

◆ remove_file()

subroutine, public m_npy::remove_file ( character(len=*), intent(in)  filename)

Definition at line 72 of file m_npy.f90.

◆ dict_str()

character(len=:) function, allocatable m_npy::dict_str ( character(len=*), intent(in)  var_type,
integer(int32), dimension(:), intent(in)  var_shape 
)
private

Definition at line 80 of file m_npy.f90.

◆ shape_str()

character(len=:) function, allocatable m_npy::shape_str ( integer(int32), dimension(:), intent(in)  var_shape)
private

Definition at line 126 of file m_npy.f90.

◆ write_header()

subroutine m_npy::write_header ( integer(int32), intent(in)  p_un,
character(len=*), intent(in)  var_type,
integer(int32), dimension(:), intent(in)  var_shape 
)
private

Definition at line 146 of file m_npy.f90.

◆ write_cmplx_sgn_mtx()

subroutine m_npy::write_cmplx_sgn_mtx ( character(len=*), intent(in)  filename,
complex(4), dimension(:, :), intent(in)  mtx 
)
private

Definition at line 164 of file m_npy.f90.

◆ write_cmplx_sgn_vec()

subroutine m_npy::write_cmplx_sgn_vec ( character(len=*), intent(in)  filename,
complex(4), dimension(:), intent(in)  vec 
)
private

Definition at line 175 of file m_npy.f90.

◆ write_cmplx_dbl_6dt()

subroutine m_npy::write_cmplx_dbl_6dt ( character(len=*), intent(in)  filename,
complex(8), dimension(:, :, :, :, :, :), intent(in)  tensor 
)
private

Definition at line 186 of file m_npy.f90.

◆ write_cmplx_dbl_5dt()

subroutine m_npy::write_cmplx_dbl_5dt ( character(len=*), intent(in)  filename,
complex(8), dimension(:, :, :, :, :), intent(in)  tensor 
)
private

Definition at line 197 of file m_npy.f90.

◆ write_cmplx_dbl_4dt()

subroutine m_npy::write_cmplx_dbl_4dt ( character(len=*), intent(in)  filename,
complex(8), dimension(:, :, :, :), intent(in)  tensor 
)
private

Definition at line 208 of file m_npy.f90.

◆ write_cmplx_dbl_3dt()

subroutine m_npy::write_cmplx_dbl_3dt ( character(len=*), intent(in)  filename,
complex(8), dimension(:, :, :), intent(in)  tensor 
)
private

Definition at line 219 of file m_npy.f90.

◆ write_cmplx_dbl_mtx()

subroutine m_npy::write_cmplx_dbl_mtx ( character(len=*), intent(in)  filename,
complex(8), dimension(:, :), intent(in)  mtx 
)
private

Definition at line 230 of file m_npy.f90.

◆ write_cmplx_dbl_vec()

subroutine m_npy::write_cmplx_dbl_vec ( character(len=*), intent(in)  filename,
complex(8), dimension(:), intent(in)  vec 
)
private

Definition at line 241 of file m_npy.f90.

◆ write_sng_3dt()

subroutine m_npy::write_sng_3dt ( character(len=*), intent(in)  filename,
real(real32), dimension(:, :, :), intent(in)  tensor 
)
private

Definition at line 252 of file m_npy.f90.

◆ write_sng_4dt()

subroutine m_npy::write_sng_4dt ( character(len=*), intent(in)  filename,
real(real32), dimension(:, :, :, :), intent(in)  tensor 
)
private

Definition at line 263 of file m_npy.f90.

◆ write_sng_mtx()

subroutine m_npy::write_sng_mtx ( character(len=*), intent(in)  filename,
real(real32), dimension(:, :), intent(in)  mtx 
)
private

Definition at line 274 of file m_npy.f90.

◆ write_sng_vec()

subroutine m_npy::write_sng_vec ( character(len=*), intent(in)  filename,
real(real32), dimension(:), intent(in)  vec 
)
private

Definition at line 285 of file m_npy.f90.

◆ write_dbl_3dt()

subroutine m_npy::write_dbl_3dt ( character(len=*), intent(in)  filename,
real(real64), dimension(:, :, :), intent(in)  tensor 
)
private

Definition at line 296 of file m_npy.f90.

◆ write_dbl_4dt()

subroutine m_npy::write_dbl_4dt ( character(len=*), intent(in)  filename,
real(real64), dimension(:, :, :, :), intent(in)  tensor4 
)
private

Definition at line 307 of file m_npy.f90.

◆ write_dbl_5dt()

subroutine m_npy::write_dbl_5dt ( character(len=*), intent(in)  filename,
real(real64), dimension(:, :, :, :, :), intent(in)  tensor5 
)
private

Definition at line 318 of file m_npy.f90.

◆ write_dbl_mtx()

subroutine m_npy::write_dbl_mtx ( character(len=*), intent(in)  filename,
real(real64), dimension(:, :), intent(in)  mtx 
)
private

Definition at line 329 of file m_npy.f90.

◆ write_dbl_vec()

subroutine m_npy::write_dbl_vec ( character(len=*), intent(in)  filename,
real(real64), dimension(:), intent(in)  vec 
)
private

Definition at line 340 of file m_npy.f90.

◆ write_int64_mtx()

subroutine m_npy::write_int64_mtx ( character(len=*), intent(in)  filename,
integer(int64), dimension(:, :), intent(in)  mtx 
)
private

Definition at line 351 of file m_npy.f90.

◆ write_int64_vec()

subroutine m_npy::write_int64_vec ( character(len=*), intent(in)  filename,
integer(int64), dimension(:), intent(in)  vec 
)
private

Definition at line 362 of file m_npy.f90.

◆ write_int32_mtx()

subroutine m_npy::write_int32_mtx ( character(len=*), intent(in)  filename,
integer(int32), dimension(:, :), intent(in)  mtx 
)
private

Definition at line 373 of file m_npy.f90.

◆ write_int32_3d()

subroutine m_npy::write_int32_3d ( character(len=*), intent(in)  filename,
integer(int32), dimension(:,:,:), intent(in)  mtx 
)
private

Definition at line 384 of file m_npy.f90.

◆ write_int32_vec()

subroutine m_npy::write_int32_vec ( character(len=*), intent(in)  filename,
integer(int32), dimension(:), intent(in)  vec 
)
private

Definition at line 395 of file m_npy.f90.

◆ write_int16_mtx()

subroutine m_npy::write_int16_mtx ( character(len=*), intent(in)  filename,
integer(int16), dimension(:, :), intent(in)  mtx 
)
private

Definition at line 406 of file m_npy.f90.

◆ write_int16_vec()

subroutine m_npy::write_int16_vec ( character(len=*), intent(in)  filename,
integer(int16), dimension(:), intent(in)  vec 
)
private

Definition at line 417 of file m_npy.f90.

◆ write_int8_mtx()

subroutine m_npy::write_int8_mtx ( character(len=*), intent(in)  filename,
integer(int8), dimension(:, :), intent(in)  mtx 
)
private

Definition at line 428 of file m_npy.f90.

◆ write_int8_3d()

subroutine m_npy::write_int8_3d ( character(len=*), intent(in)  filename,
integer(int8), dimension(:,:,:), intent(in)  mtx 
)
private

Definition at line 439 of file m_npy.f90.

◆ write_int8_vec()

subroutine m_npy::write_int8_vec ( character(len=*), intent(in)  filename,
integer(int8), dimension(:), intent(in)  vec 
)
private

Definition at line 450 of file m_npy.f90.

Variable Documentation

◆ npy_suffix

character(len=*), parameter m_npy::npy_suffix = '.npy'
private

Definition at line 8 of file m_npy.f90.