Quick Start with Docker
Start the onesparse demo docker container, substitute suitable password and container name:
The container will start detached in the background, verify it's running with 'docker ps'. Now exec a psql process to interact with the container:
docker exec -u postgres -it onesparse-demo psql
postgres# create extension onesparse;
CREATE EXTENSION
postgres# select print(random_matrix(8, 8, 16, seed=>0.42, max=>42)) as random_matrix;
┌────────────────────────────────┐
│ random_matrix │
├────────────────────────────────┤
│ 0 1 2 3 4 5 6 7 ↵│
│ ──────────────────────── ↵│
│ 0│ 6 31 ↵│
│ 1│ 12 ↵│
│ 2│ 26 ↵│
│ 3│ 40 ↵│
│ 4│ 11 15 7 ↵│
│ 5│ 20 12 22 1 ↵│
│ 6│ 1 ↵│
│ 7│ 17 ↵│
│ │
└────────────────────────────────┘
(1 row)
This matrix represents the following graph:
Check out the Getting Started for some examples and the Matrix Documentation. You can verify the doctests with docker using: