# fhash
__[fpm](https://github.com/fortran-lang/fpm) package implementing a hash table with support for generic keys and values.__
[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT)
[![fpm test](https://github.com/LKedward/fhash/workflows/fpm%20test/badge.svg?branch=master&event=push)](https://github.com/LKedward/fhash/actions)
[![ford docs](https://img.shields.io/badge/FORD%20API%20Docs-Deployed-green)](https://lkedward.github.io/fhash/)
## fpm usage
To use *fhash* within your *fpm* project, add the following to your package manifest file (`fpm.toml`):
```toml
[dependencies]
fhash = { git = "https://github.com/LKedward/fhash.git" }
```
## Simple example: scalar intrinsics
The package provides a `fhash_tbl_t` type with `set` and `get` methods for storing and retrieving key-value pairs.
The `fhash_key` interface (aliased to `key` below) is used to define a valid key from different inputs.
```fortran
program fhash_demo1
use fhash, only: fhash_tbl_t, key=>fhash_key
implicit none
type(fhash_tbl_t) :: tbl
integer :: val
call tbl%set(key('my_key_1'), value=10)
call tbl%set(key('my_key_2'), value=1.0)
call tbl%set(key(123456), value='a string value')
call tbl%set(key([1,2,3,4,5]), value=.false.)
call tbl%get(key('my_key_1'),val)
end program fhash_demo1
```
See the [Quickstart Guide](https://lkedward.github.io/fhash/page/index.html) for an explanation of this example and the API methods used.
## Advanced usage
- [More table methods](https://lkedward.github.io/fhash/page/1-methods-demo/index.html)
- [Storing custom derived types as values](https://lkedward.github.io/fhash/page/2-derived-type-demo/index.html)
- [Using custom derived types as keys](https://lkedward.github.io/fhash/page/3-custom-key-demo/index.html)
See <https://lkedward.github.io/fhash/> for the full API documentation.
没有合适的资源?快使用搜索试试~ 我知道了~
fortran学习笔记及项目代码.zip
共582个文件
f90:180个
o:104个
digest:104个
需积分: 5 0 下载量 59 浏览量
2024-02-18
19:31:43
上传
评论
收藏 8.04MB ZIP 举报
温馨提示
fortran学习笔记及项目代码.zip
资源推荐
资源详情
资源评论
收起资源包目录
fortran学习笔记及项目代码.zip (582个子文件)
libdemo.a 19.16MB
libdependencies.a 13KB
libdependencies.a 13KB
libhello.a 7KB
libhello.a 7KB
libhello.a 7KB
libhello.a 4KB
os.c 284B
array3.dat 800B
build_dependencies_stdlib_src_stdlib_stats_cov.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_corr.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_distribution_exponential.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_specialfunctions_legendre.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_quadrature.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_math_arange.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_quadrature_trapz.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_logger.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_optval.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_hash_64bit_fnv.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_quadrature_simps.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_bitsets_large.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stringlist_type.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_string_type.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_io_npy.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_version.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_sorting_sort_index.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_bitsets.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats.f90.o.digest 22B
app_main.f90.o.digest 22B
src_demo.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_mean.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_error.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_hash_32bit_nm.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_distribution_normal.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_kinds.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_random.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_io_npy_save.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_system.F90.o.digest 22B
build_dependencies_stdlib_src_stdlib_hash_64bit_spookyv2.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_sorting_sort.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_math_diff.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_strings_to_string.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_moment.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_io_npy_load.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_sorting_ord_sort.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_hash_32bit_water.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_hash_64bit_pengy.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_string_type_constructor.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_strings.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_moment_scalar.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_linalg_diag.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_linalg_outer_product.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_median.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_var.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_hash_32bit.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_hash_32bit_fnv.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_sorting.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_quadrature_gauss.f90.o.digest 22B
build_dependencies_stdlib_src_f08estop.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_linalg.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_bitsets_64.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_math_is_close.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_io.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_moment_all.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_math.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_math_logspace.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_hash_64bit.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_ascii.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_moment_mask.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_math_linspace.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_specialfunctions.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_math_all_close.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_array.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_stats_distribution_uniform.f90.o.digest 22B
build_dependencies_stdlib_src_stdlib_selection.f90.o.digest 22B
build_dependencies_helloff_src_helloff.f90.o.digest 22B
app_main.f90.o.digest 22B
src_math_constants.f90.o.digest 22B
src_type_kinds.f90.o.digest 22B
src_math_constants_derived.f90.o.digest 22B
src_math_constants_fundamental.f90.o.digest 22B
src_dependencies.f90.o.digest 22B
build_dependencies_helloff_src_helloff.f90.o.digest 22B
app_main.f90.o.digest 22B
src_math_constants.f90.o.digest 22B
src_type_kinds.f90.o.digest 22B
src_math_constants_derived.f90.o.digest 22B
src_math_constants_fundamental.f90.o.digest 22B
src_dependencies.f90.o.digest 22B
app_main.f90.o.digest 22B
src_math_constants.f90.o.digest 22B
src_type_kinds.f90.o.digest 22B
src_math_constants_derived.f90.o.digest 22B
app_main3.f90.o.digest 22B
src_math_constants_fundamental.f90.o.digest 22B
app_main2.f90.o.digest 22B
test_main2.f90.o.digest 22B
test_main.f90.o.digest 22B
app_main.f90.o.digest 22B
src_math_constants.f90.o.digest 22B
共 582 条
- 1
- 2
- 3
- 4
- 5
- 6
资源评论
z同学的编程之路
- 粉丝: 1891
- 资源: 2130
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于可再生能源的微电网电源管理系统
- 1714641049369119_download.jsp
- a股上市公司2007年至2020年的员工构成数据
- 【打击高价帖】低价出2000-2019各国签订的RTA区域贸易协定数量(双边)
- IMG_20240502_102008.jpg
- A股上市企业超额管理费用数据集-含参考文献、原始数据、结果数据(2003-2022年) .txt
- qtcreator11.0.3.输入中文.so
- Unity3D版本游戏源码2-91极道杀戮最新支持webgFullGameKitHammer2
- HTML5+CSS+JS精品网页模板 大学生期末大作业 Web前端网页制作
- 基于Flask的Python全国招聘岗位就业可视化系统源码+项目说明.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功