Coder Social home page Coder Social logo

st-maxwell / forlab Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fortran-fans/forlab

0.0 1.0 0.0 2.12 MB

Forlab is a Fortran module that provides a lot of functions for scientific computing mostly inspired by Matlab and Python's package NumPy.

Home Page: https://zoziha.github.io/forlab-API-doc/

License: MIT License

Fortran 97.88% Python 1.59% Makefile 0.53%

forlab's Introduction

Forlab

Forlab is a Fortran module that provides a lot of functions for scientific computing mostly inspired by Matlab and Python's module NumPy. Forlab is mainly developed by Keurfon Luu.

Version: 1.0.1
Author: forlab contributors
Web site: https://github.com/zoziha/forlab
Copyright: This document has been placed in the public domain.
License: Forlab is released under the MIT License.

Getting Started

Get the code

git clone https://github.com/zoziha/forlab.git
cd forlab

Supported Compilers

The following combinations are tested on the default branch of forlab:

Name Vesrion Platform Architecture
GCC Fortran(MSYS2) 10 Windows 10 x86_64

Build with Make

You can build using provided Makefiles:

make
make test

Build with fpm

You can build using provided fpm.toml:

fpm build
fpm test

To use forlab within your fpm project, add the following to fpm.toml file:

[dependencies]
forlab = { git = "https://github.com/zoziha/forlab.git" }

Forlab Docs

ford API-doc-FORD-file.md  # todo

Precision Description

Forlab uses double precision by default.
If you have special needs, you can change the variables ipre and rpre in the forlab.f90 by yourself.
In the near future, the forlab package will support multiple precision.

Interfaces

public :: File, acosd, asind, atand, argmax, argmin, argsort, arange, &
              angle, bsplrep1, bsplrep2, bspline1, bspline2, chol, cosd, countlines, &
              cov, cumsum, chi2cdf, chi2pdf, chi2inv, chi2rand, check_directory, &
              det, diag, disp, deg2utm, datenum, datevec, datestr, deboor, diff, &
              eig, empty, eye, &
              find, flip, fliplr, flipud, fminbnd, gammainc, horzcat, &
              hann, interp1, interp2, interp3, inv, ismember, isoutlier, issquare, &
              isleap, issymmetric, kurtosis, k2test, kde, linspace, &
              mean, median, mad, meshgrid, nextpow2, norm, normpdf, num2str, ones, &
              outer, pascal, prctile, progress_bar, progress_perc, rng, randu, randn, &
              randi, randperm, repmat, rms, savetxt, savebin, sind, sort, solve, &
              svd, svdsolve, std, spline1, spline2, skewness, signum, sinc, &
              split_argument, tand, tic, toc, trace, tril, triu, utm2deg, vertcat, &
              var, zeros, dbindex, gmm, kmeans, mbkmeans, silhouette
public :: loadbin, sloadbin, dloadbin, qloadbin
public :: loadtxt, sloadtxt, dloadtxt, qloadtxt
! #ifdef do_mpi
public :: mpi_rpre
! #endif

! Operators
public :: operator(.i.), operator(.x.)

To Fix

  1. When using the "gfortran -g" option and the sort function, an error "segment error" appears; when using the "gfortran -o3" option and the sort function, it runs normally.

Link

keurfonluu/Forlab

forlab's People

Contributors

euler-37 avatar keurfonluu avatar zoziha avatar

Watchers

 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.