Skip to content

Getting Started Guide

Mike Anderson edited this page Aug 12, 2015 · 18 revisions

Adding the core.matrix dependency

First task is to ensure that core.matrix is available in your project. The simplest way is to include it as a dependency from Clojars using either Leiningen or Maven. The latest dependency information is:

Clojars Project

Use or require the clojure.core.matrix API namespace

The majority for the core.matrix API is provided as functions in the clojure.core.matrix namespace. You can either use or require this namespace. If requiring, the usual convention is to use the alias m so that functions can be accesses as m/add etc. However for the purposes of this guide we will use the namespace at the REPL as follows:

(use 'clojure.core.matrix)

Clone this wiki locally