Skip to main content

Architecture of Advanced Numerical Analysis Systems

Designing a Scientific Computing System using OCaml

  • Book
  • Open Access
  • © 2023

You have full access to this open access Book


  • Covers the design of a complex computation system, Owl, developed with OCaml
  • Includes detailed explanations and code to illustrate various aspects of implementing a practical system
  • Written by Owl's designers and developers themselves
  • Provides step-by-step guide on how to construct advanced computing functionalities such as neural networks

Buy print copy

Softcover Book USD 49.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Table of contents (11 chapters)


About this book

This unique open access book applies the functional OCaml programming language to numerical or computational weighted data science, engineering, and scientific applications. This book is based on the authors' first-hand experience building and maintaining Owl, an OCaml-based numerical computing library. 

You'll first learn the various components in a modern numerical computation library. Then, you will learn how these components are designed and built up and how to optimize their performance. After reading and using this book, you'll have the knowledge required to design and build real-world complex systems that effectively leverage the advantages of the OCaml functional programming language.

What You Will Learn

  • Optimize core operations based on N-dimensional arrays
  • Design and implement an industry-level algorithmic differentiation module
  • Implement mathematical optimization, regression, and deep neural network functionalities based on algorithmic differentiation
  • Design and optimize a computation graph module, and understand the benefits it brings to the numerical computing library
  • Accommodate the growing number of hardware accelerators (e.g. GPU, TPU) and execution backends (e.g. web browser, unikernel) of numerical computation
  • Use the Zoo system for efficient scripting, code sharing, service deployment, and composition
  • Design and implement a distributed computing engine to work with a numerical computing library, providing convenient APIs and high performance

Who This Book Is For
Those with prior programming experience, especially with the OCaml programming language, or with scientific computing experience who may be new to OCaml. Most importantly, it is for those who are eager to understand not only how to use something, but also how it is built up.

Authors and Affiliations

  • Helsinki, Finland

    Liang Wang

  • Bejing, China

    Jianxin Zhao

About the authors

Liang Wang is the Chief AI Architect at Nokia, the Chief Scientific Officer at iKVA, a Senior Researcher at the University of Cambridge, and an Intel Software Innovator. He has a broad research interest in artificial intelligence, machine learning, operating systems, computer networks, optimization theory, and graph theory.

Jianxin Zhao is a PhD graduate from the University of Cambridge, supervised by Prof. Jon Crowcroft. His research interests include numerical computation, high-performance computing, machine learning, and their application in the real world.

Bibliographic Information

Publish with us