stdlib_kinds.fypp Source File


Files dependent on this one

sourcefile~~stdlib_kinds.fypp~~AfferentGraph sourcefile~stdlib_kinds.fypp stdlib_kinds.fypp sourcefile~stdlib_quadrature.fypp stdlib_quadrature.fypp sourcefile~stdlib_quadrature.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_stats.fypp stdlib_stats.fypp sourcefile~stdlib_stats.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_random.fypp stdlib_random.fypp sourcefile~stdlib_random.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_optval.fypp stdlib_optval.fypp sourcefile~stdlib_random.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_error.f90 stdlib_error.f90 sourcefile~stdlib_random.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_linalg.fypp stdlib_linalg.fypp sourcefile~stdlib_linalg.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_linalg.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_linalg.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_strings.fypp stdlib_strings.fypp sourcefile~stdlib_strings.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_strings.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_ascii.fypp stdlib_ascii.fypp sourcefile~stdlib_strings.fypp->sourcefile~stdlib_ascii.fypp sourcefile~stdlib_string_type.fypp stdlib_string_type.fypp sourcefile~stdlib_strings.fypp->sourcefile~stdlib_string_type.fypp sourcefile~stdlib_specialfunctions.f90 stdlib_specialfunctions.f90 sourcefile~stdlib_specialfunctions.f90->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_bitsets.fypp stdlib_bitsets.fypp sourcefile~stdlib_bitsets.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_bitsets.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_hashmap_wrappers.f90 stdlib_hashmap_wrappers.f90 sourcefile~stdlib_hashmap_wrappers.f90->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_hash_32bit.fypp stdlib_hash_32bit.fypp sourcefile~stdlib_hashmap_wrappers.f90->sourcefile~stdlib_hash_32bit.fypp sourcefile~stdlib_stats_distribution_exponential.fypp stdlib_stats_distribution_exponential.fypp sourcefile~stdlib_stats_distribution_exponential.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_stats_distribution_exponential.fypp->sourcefile~stdlib_random.fypp sourcefile~stdlib_stats_distribution_uniform.fypp stdlib_stats_distribution_uniform.fypp sourcefile~stdlib_stats_distribution_exponential.fypp->sourcefile~stdlib_stats_distribution_uniform.fypp sourcefile~stdlib_stats_distribution_exponential.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_optval.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_io.fypp stdlib_io.fypp sourcefile~stdlib_io.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_io.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_io.fypp->sourcefile~stdlib_ascii.fypp sourcefile~stdlib_io.fypp->sourcefile~stdlib_string_type.fypp sourcefile~stdlib_io.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_ascii.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_hash_32bit.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_selection.fypp stdlib_selection.fypp sourcefile~stdlib_selection.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_string_type.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_string_type.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_string_type.fypp->sourcefile~stdlib_ascii.fypp sourcefile~stdlib_hash_64bit.fypp stdlib_hash_64bit.fypp sourcefile~stdlib_hash_64bit.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_specialfunctions_gamma.fypp stdlib_specialfunctions_gamma.fypp sourcefile~stdlib_specialfunctions_gamma.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_specialfunctions_gamma.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_sorting.fypp stdlib_sorting.fypp sourcefile~stdlib_sorting.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_sorting.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_sorting.fypp->sourcefile~stdlib_string_type.fypp sourcefile~stdlib_stats_distribution_normal.fypp stdlib_stats_distribution_normal.fypp sourcefile~stdlib_stats_distribution_normal.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_stats_distribution_normal.fypp->sourcefile~stdlib_random.fypp sourcefile~stdlib_stats_distribution_normal.fypp->sourcefile~stdlib_stats_distribution_uniform.fypp sourcefile~stdlib_stats_distribution_normal.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_math.fypp stdlib_math.fypp sourcefile~stdlib_math.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_math.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_hashmaps.f90 stdlib_hashmaps.f90 sourcefile~stdlib_hashmaps.f90->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_hashmaps.f90->sourcefile~stdlib_hashmap_wrappers.f90 sourcefile~stdlib_stats_distribution_uniform.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_stats_distribution_uniform.fypp->sourcefile~stdlib_random.fypp sourcefile~stdlib_stats_distribution_uniform.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_io_npy.fypp stdlib_io_npy.fypp sourcefile~stdlib_io_npy.fypp->sourcefile~stdlib_kinds.fypp sourcefile~stdlib_io_npy_load.fypp stdlib_io_npy_load.fypp sourcefile~stdlib_io_npy_load.fypp->sourcefile~stdlib_strings.fypp sourcefile~stdlib_io_npy_load.fypp->sourcefile~stdlib_io_npy.fypp sourcefile~stdlib_io_npy_load.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_hashmap_open.f90 stdlib_hashmap_open.f90 sourcefile~stdlib_hashmap_open.f90->sourcefile~stdlib_hashmap_wrappers.f90 sourcefile~stdlib_hashmap_open.f90->sourcefile~stdlib_hashmaps.f90 sourcefile~stdlib_stats_var.fypp stdlib_stats_var.fypp sourcefile~stdlib_stats_var.fypp->sourcefile~stdlib_stats.fypp sourcefile~stdlib_stats_var.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_stats_var.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_stats_moment_mask.fypp stdlib_stats_moment_mask.fypp sourcefile~stdlib_stats_moment_mask.fypp->sourcefile~stdlib_stats.fypp sourcefile~stdlib_stats_moment_mask.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_stats_moment_mask.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_io_npy_save.fypp stdlib_io_npy_save.fypp sourcefile~stdlib_io_npy_save.fypp->sourcefile~stdlib_strings.fypp sourcefile~stdlib_io_npy_save.fypp->sourcefile~stdlib_io_npy.fypp sourcefile~stdlib_io_npy_save.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_stats_cov.fypp stdlib_stats_cov.fypp sourcefile~stdlib_stats_cov.fypp->sourcefile~stdlib_stats.fypp sourcefile~stdlib_stats_cov.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_stats_cov.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_string_type_constructor.fypp stdlib_string_type_constructor.fypp sourcefile~stdlib_string_type_constructor.fypp->sourcefile~stdlib_strings.fypp sourcefile~stdlib_string_type_constructor.fypp->sourcefile~stdlib_string_type.fypp sourcefile~stdlib_math_linspace.fypp stdlib_math_linspace.fypp sourcefile~stdlib_math_linspace.fypp->sourcefile~stdlib_math.fypp sourcefile~stdlib_sorting_sort.fypp stdlib_sorting_sort.fypp sourcefile~stdlib_sorting_sort.fypp->sourcefile~stdlib_sorting.fypp sourcefile~stdlib_sorting_ord_sort.fypp stdlib_sorting_ord_sort.fypp sourcefile~stdlib_sorting_ord_sort.fypp->sourcefile~stdlib_sorting.fypp sourcefile~stdlib_stats_moment_scalar.fypp stdlib_stats_moment_scalar.fypp sourcefile~stdlib_stats_moment_scalar.fypp->sourcefile~stdlib_stats.fypp sourcefile~stdlib_stats_moment_scalar.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_stats_moment_scalar.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_stats_mean.fypp stdlib_stats_mean.fypp sourcefile~stdlib_stats_mean.fypp->sourcefile~stdlib_stats.fypp sourcefile~stdlib_stats_mean.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_stats_mean.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_logger.f90 stdlib_logger.f90 sourcefile~stdlib_logger.f90->sourcefile~stdlib_optval.fypp sourcefile~stdlib_logger.f90->sourcefile~stdlib_ascii.fypp sourcefile~stdlib_strings_to_string.fypp stdlib_strings_to_string.fypp sourcefile~stdlib_strings_to_string.fypp->sourcefile~stdlib_strings.fypp sourcefile~stdlib_hash_32bit_fnv.fypp stdlib_hash_32bit_fnv.fypp sourcefile~stdlib_hash_32bit_fnv.fypp->sourcefile~stdlib_hash_32bit.fypp sourcefile~stdlib_stringlist_type.f90 stdlib_stringlist_type.f90 sourcefile~stdlib_stringlist_type.f90->sourcefile~stdlib_string_type.fypp sourcefile~stdlib_stringlist_type.f90->sourcefile~stdlib_math.fypp sourcefile~stdlib_stats_moment.fypp stdlib_stats_moment.fypp sourcefile~stdlib_stats_moment.fypp->sourcefile~stdlib_stats.fypp sourcefile~stdlib_stats_moment.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_stats_moment.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_math_is_close.fypp stdlib_math_is_close.fypp sourcefile~stdlib_math_is_close.fypp->sourcefile~stdlib_math.fypp sourcefile~stdlib_math_all_close.fypp stdlib_math_all_close.fypp sourcefile~stdlib_math_all_close.fypp->sourcefile~stdlib_math.fypp sourcefile~stdlib_hash_32bit_water.fypp stdlib_hash_32bit_water.fypp sourcefile~stdlib_hash_32bit_water.fypp->sourcefile~stdlib_hash_32bit.fypp sourcefile~stdlib_hash_64bit_pengy.fypp stdlib_hash_64bit_pengy.fypp sourcefile~stdlib_hash_64bit_pengy.fypp->sourcefile~stdlib_hash_64bit.fypp sourcefile~stdlib_hash_64bit_spookyv2.fypp stdlib_hash_64bit_spookyv2.fypp sourcefile~stdlib_hash_64bit_spookyv2.fypp->sourcefile~stdlib_hash_64bit.fypp sourcefile~stdlib_quadrature_gauss.f90 stdlib_quadrature_gauss.f90 sourcefile~stdlib_quadrature_gauss.f90->sourcefile~stdlib_quadrature.fypp sourcefile~stdlib_quadrature_gauss.f90->sourcefile~stdlib_specialfunctions.f90 sourcefile~stdlib_hash_32bit_nm.fypp stdlib_hash_32bit_nm.fypp sourcefile~stdlib_hash_32bit_nm.fypp->sourcefile~stdlib_hash_32bit.fypp sourcefile~stdlib_math_diff.fypp stdlib_math_diff.fypp sourcefile~stdlib_math_diff.fypp->sourcefile~stdlib_math.fypp sourcefile~stdlib_error.f90->sourcefile~stdlib_optval.fypp sourcefile~stdlib_sorting_sort_index.fypp stdlib_sorting_sort_index.fypp sourcefile~stdlib_sorting_sort_index.fypp->sourcefile~stdlib_sorting.fypp sourcefile~stdlib_linalg_outer_product.fypp stdlib_linalg_outer_product.fypp sourcefile~stdlib_linalg_outer_product.fypp->sourcefile~stdlib_linalg.fypp sourcefile~stdlib_stats_corr.fypp stdlib_stats_corr.fypp sourcefile~stdlib_stats_corr.fypp->sourcefile~stdlib_stats.fypp sourcefile~stdlib_stats_corr.fypp->sourcefile~stdlib_linalg.fypp sourcefile~stdlib_stats_corr.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_stats_corr.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_quadrature_simps.fypp stdlib_quadrature_simps.fypp sourcefile~stdlib_quadrature_simps.fypp->sourcefile~stdlib_quadrature.fypp sourcefile~stdlib_quadrature_simps.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_stats_median.fypp stdlib_stats_median.fypp sourcefile~stdlib_stats_median.fypp->sourcefile~stdlib_stats.fypp sourcefile~stdlib_stats_median.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_stats_median.fypp->sourcefile~stdlib_selection.fypp sourcefile~stdlib_stats_median.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_hash_64bit_fnv.fypp stdlib_hash_64bit_fnv.fypp sourcefile~stdlib_hash_64bit_fnv.fypp->sourcefile~stdlib_hash_64bit.fypp sourcefile~stdlib_math_logspace.fypp stdlib_math_logspace.fypp sourcefile~stdlib_math_logspace.fypp->sourcefile~stdlib_math.fypp sourcefile~stdlib_linalg_diag.fypp stdlib_linalg_diag.fypp sourcefile~stdlib_linalg_diag.fypp->sourcefile~stdlib_linalg.fypp sourcefile~stdlib_bitsets_64.fypp stdlib_bitsets_64.fypp sourcefile~stdlib_bitsets_64.fypp->sourcefile~stdlib_bitsets.fypp sourcefile~stdlib_bitsets_large.fypp stdlib_bitsets_large.fypp sourcefile~stdlib_bitsets_large.fypp->sourcefile~stdlib_bitsets.fypp sourcefile~stdlib_hashmap_chaining.f90 stdlib_hashmap_chaining.f90 sourcefile~stdlib_hashmap_chaining.f90->sourcefile~stdlib_hashmaps.f90 sourcefile~stdlib_specialfunctions_legendre.f90 stdlib_specialfunctions_legendre.f90 sourcefile~stdlib_specialfunctions_legendre.f90->sourcefile~stdlib_specialfunctions.f90 sourcefile~stdlib_quadrature_trapz.fypp stdlib_quadrature_trapz.fypp sourcefile~stdlib_quadrature_trapz.fypp->sourcefile~stdlib_quadrature.fypp sourcefile~stdlib_quadrature_trapz.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_stats_moment_all.fypp stdlib_stats_moment_all.fypp sourcefile~stdlib_stats_moment_all.fypp->sourcefile~stdlib_stats.fypp sourcefile~stdlib_stats_moment_all.fypp->sourcefile~stdlib_optval.fypp sourcefile~stdlib_stats_moment_all.fypp->sourcefile~stdlib_error.f90 sourcefile~stdlib_math_arange.fypp stdlib_math_arange.fypp sourcefile~stdlib_math_arange.fypp->sourcefile~stdlib_math.fypp sourcefile~f08estop.f90 f08estop.f90 sourcefile~f08estop.f90->sourcefile~stdlib_error.f90 sourcefile~f18estop.f90 f18estop.f90 sourcefile~f18estop.f90->sourcefile~stdlib_error.f90

Contents

Source Code


Source Code

#:include "common.fypp"
!> Version: experimental
!>
!> The specification of this module is available [here](../page/specs/stdlib_kinds.html).
module stdlib_kinds
  use iso_fortran_env, only: int8, int16, int32, int64
  use iso_c_binding, only: c_bool
  implicit none
  private
  public :: sp, dp, xdp, qp, int8, int16, int32, int64, lk, c_bool

  !> Single precision real numbers
  integer, parameter :: sp = selected_real_kind(6)

  !> Double precision real numbers
  integer, parameter :: dp = selected_real_kind(15)

  !> Extended double precision real numbers
  integer, parameter :: xdp = #{if WITH_XDP}#selected_real_kind(18)#{else}#-1#{endif}#

  !> Quadruple precision real numbers
  integer, parameter :: qp = #{if WITH_QP}#selected_real_kind(33)#{else}#-1#{endif}#

  !> Default logical kind parameter
  integer, parameter :: lk = kind(.true.)

end module stdlib_kinds