GithubHelp home page GithubHelp logo

jvdp1 / moa-fortran Goto Github PK

View Code? Open in Web Editor NEW

This project forked from wyphan/moa-fortran

0.0 0.0 0.0 53 KB

Repository for the Mathematics of Arrays library for modern Fortran

License: BSD 3-Clause "New" or "Revised" License

Fortran 100.00%

moa-fortran's Introduction

Mathematics of Arrays library for modern Fortran

The following operations have been implemented:

  • scalar take vector

The following functions have been implemented:

  • gamma ( vector, vector )

Contributing

  • Please submit your contributions using a pull request, instead of directly pushing commits to the main repo.
  • Please write one module file per function/operator, with a module name prefixed with mod_moa_.
  • Begin each file with a short description and a "last edited" comment, e.g.
!===============================================================================
! The family of "Gamma" offset functions
! Last edited: Sep 9, 2021 (WYP)
!===============================================================================
MODULE mod_moa_gamma
  • Declare everything as PRIVATE and export PUBLIC generic interfaces. The exported interface name should begin with the moa_ prefix:
  PRIVATE
  PUBLIC :: moa_gamma

  INTERFACE moa_gamma
    MODULE PROCEDURE gamma_vv_i, gamma_vv_dl ! gamma ( vector, vector )
  END INTERFACE moa_gamma
  • Always use IMPLICIT NONE and declare all arguments with INTENT(IN/OUT/INOUT).
  • Please sprinkle helpful comments in the code.
  • For error messages, please output them to standard error instead of standard output. Put the following near the beginning of the function/subroutine:
  USE ISO_FORTRAN_ENV, ONLY: u => error_unit

and output the error message as follows:

  WRITE(u,'(A,I0,A,I0)') "Error[moa_gamma]: Out-of-bounds access ", &
                         avec(ia), " out of ", bvec(ib)
  • Provide a standalone unit test under tests subdirectory.
  • If you haven't already, please install EditorConfig for your favorite text editor to standardize the style (esp. tabs vs spaces).

License

This work is licensed under the 3-clause BSD license.

moa-fortran's People

Contributors

wyphan avatar

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.