GithubHelp home page GithubHelp logo

hashtable's Introduction

Hash tables

Modern Fortran hash tables based on the function hashword in lookup3.c

Derived types

Five derived types are available:

Derived type Data to be stored
table_char_t Characters of a defined length. Trailing blanks are ignored.
table_int32_t Integer scalars of 32 bits
table_real32_t Real scalars of 32 bits
table_arrint32_t Integer arrays of 32 bits
table_arrreal32_t Real arrays of 32 bits

Public derived type methods

Each derived type contains these 7 public methods.

Method Class Description
add(element[, index, lnew]) Subroutine Add the element element in the DT if not stored yet. The integer index (intent(out), optional) contains the index of the elements (between 1 and getfilled(). The logical lnew (intent(out), optional) is .true. if the element is not stored yet. Otherwise it is .false..
destroy() Function Reset all scalars and arrays
get(index) Function Returns the element stored corresponding to the index index.
getfilled() Function Returns the number of elements stored in the DT
getindex(element) Function Returns the index (between 1 and getfilled()) of the element element
getsize() Function Returns the size of the arrays that contains the stored elements
writetable(filename) Subroutine Writes to a file called filename all elements and corresponding index stored in the DT.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.