From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@sympa.inria.fr Delivered-To: caml-list@sympa.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by sympa.inria.fr (Postfix) with ESMTPS id F0FC37FC6B for ; Mon, 19 Oct 2015 13:33:35 +0200 (CEST) IronPort-PHdr: 9a23:3GBviRcWqwwTjZRVp/O4fH4DlGMj4u6mDksu8pMizoh2WeGdxc68bB7h7PlgxGXEQZ/co6odzbGG7+axBydcud6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDuvcyNKFkQzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IZ4yhIP99FeAQTGl+cjN92Mq+vhDGSU6L52AAemQQiBtBRQbfvz/gWZKklCr+raJX1SKZMNe+GbY1XS/k5apgSxLyoC0GMCck+WfLzNF2jedbrROtqhh1zpTbJo2YYqktNpjBdM8XEDISFv1aUDZMV97kYg== Authentication-Results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=nils.becker@bioquant.uni-heidelberg.de; spf=Pass smtp.mailfrom=gclci-caml-list@m.gmane.org; spf=Pass smtp.helo=postmaster@plane.gmane.org Received-SPF: None (mail2-smtp-roc.national.inria.fr: no sender authenticity information available from domain of nils.becker@bioquant.uni-heidelberg.de) identity=pra; client-ip=80.91.229.3; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="nils.becker@bioquant.uni-heidelberg.de"; x-conformance=sidf_compatible Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of gclci-caml-list@m.gmane.org designates 80.91.229.3 as permitted sender) identity=mailfrom; client-ip=80.91.229.3; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="gclci-caml-list@m.gmane.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" Received-SPF: Pass (mail2-smtp-roc.national.inria.fr: domain of postmaster@plane.gmane.org designates 80.91.229.3 as permitted sender) identity=helo; client-ip=80.91.229.3; receiver=mail2-smtp-roc.national.inria.fr; envelope-from="gclci-caml-list@m.gmane.org"; x-sender="postmaster@plane.gmane.org"; x-conformance=sidf_compatible; x-record-type="v=spf1" X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0C+AABV1CRWgQPlW1BehAoqRQG+DQENgXuHMjgUAQEBAQEBAQEQAQEWMy6CJoIIAQUjZgsYAgImAgIQLRoTCAEBiCwEAQiwKJMFgSKFVYR+hSuCUoFFBZYjhRmKJIZxi0iHPx8BAYIMAQuCL3EBhWUBAQE X-IPAS-Result: A0C+AABV1CRWgQPlW1BehAoqRQG+DQENgXuHMjgUAQEBAQEBAQEQAQEWMy6CJoIIAQUjZgsYAgImAgIQLRoTCAEBiCwEAQiwKJMFgSKFVYR+hSuCUoFFBZYjhRmKJIZxi0iHPx8BAYIMAQuCL3EBhWUBAQE X-IronPort-AV: E=Sophos;i="5.17,701,1437429600"; d="scan'208";a="183441917" Received: from plane.gmane.org ([80.91.229.3]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/AES256-SHA; 19 Oct 2015 13:33:35 +0200 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Zo8h3-0002o8-B0 for caml-list@inria.fr; Mon, 19 Oct 2015 13:33:33 +0200 Received: from bqdyn253_067.bioquant.uni-heidelberg.de ([129.206.253.147]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Oct 2015 13:33:33 +0200 Received: from nils.becker by bqdyn253_067.bioquant.uni-heidelberg.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 19 Oct 2015 13:33:33 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: caml-list@inria.fr From: Nils Becker Date: Mon, 19 Oct 2015 13:34:00 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: bqdyn253_067.bioquant.uni-heidelberg.de X-Enigmail-Draft-Status: N1110 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 In-Reply-To: X-Validation-by: nils.becker@bioquant.uni-heidelberg.de Subject: Re: [Caml-list] Is there any numpy / pandas like library in OCaml? On 17/10/15 16:55, Dan Stark wrote: > Hi > > NumPy and Pandas are quite famous in scientific computing with Python. > > I am just wondering whether OCaml has such a library? there is also this: http://akabe.github.io/slap/ which implements matrices whose dimensions are encoded in the type. fwiw, for special functions one can interface to c libraries relatively easily using ctypes. e.g. Rmath has a lot. hdf5 support has just arrived, https://opam.ocaml.org/packages/hdf5/hdf5.0.1/ i too would absolutely love to have something like numpy and something like pandas in ocaml. the features i would want from ocaml-numpy are a nice compact array slicing syntax, something like broadcasting, indexing of arrays with int arrays or lists, and some magic that knows how to choose the appropriate BLAS routines for common matrix operations. for a pandas equivalent, flexible indexing would be the most important thing. and printing a nice readable short output on screen with minimal effort.