From cc2514ba96f1f55481dffeab88b2dde5e9136892 Mon Sep 17 00:00:00 2001 From: dragonfly-ai Date: Wed, 8 Nov 2023 17:33:33 +0000 Subject: [PATCH] deploy: 32a605d368042b28649615975e981612d6a96676 --- basics/getting_started.html | 24 +++++++++++------------ demo/poisson.html | 38 ++++++++++++++++++------------------- index.html | 6 +++--- 3 files changed, 34 insertions(+), 34 deletions(-) diff --git a/basics/getting_started.html b/basics/getting_started.html index 21ccb74..4409451 100644 --- a/basics/getting_started.html +++ b/basics/getting_started.html @@ -125,19 +125,19 @@

val v_rand = Vec.random[5]() // v_rand: Vec[5] = Array( -// -0.7486238910640207, -// -0.5983521572362768, -// -0.7491290760285536, -// -0.9939281554339586, -// -0.8634166368608758 +// -0.7492673116093448, +// -0.8583776350687171, +// -0.12318137393689721, +// -0.18535867088406988, +// -0.031915533454888845 // ) val v_rand_max_min = Vec.random[5](2.0, 0.5) // v_rand_max_min: Vec[5] = Array( -// 1.2490830072834167, -// 1.6541254273861339, -// 0.7622812872334197, -// 1.6707001401447044, -// 1.552328874239625 +// 1.5778716348470616, +// 1.112660836947307, +// 1.8264744549877232, +// 1.689527778097455, +// 1.1603737671553749 // )

And do some stuff

v + v_fill
@@ -159,10 +159,10 @@ 

// res6: Double = 3.0 v.corr(v_rand) -// res7: Double = -0.6699138866668766 +// res7: Double = 0.8679234841577796 v_rand.elementRanks -// res8: Vec[5] = Array(4.0, 5.0, 3.0, 1.0, 2.0)

+// res8: Vec[5] = Array(2.0, 1.0, 4.0, 3.0, 5.0) diff --git a/demo/poisson.html b/demo/poisson.html index dacf3a4..bfa5fc9 100644 --- a/demo/poisson.html +++ b/demo/poisson.html @@ -127,56 +127,56 @@

Poisson Distribution

// res2: Double = 1.0 val rand = slash.Random.defaultRandom -// rand: Random = scala.util.Random@6a88472c +// rand: Random = scala.util.Random@452a0908 type N = 10000 val v : NArray[Long] = dist1.sample(10000, rand) // v: Array[Long] = Array( -// 0L, -// 0L, +// 3L, // 1L, // 0L, -// 3L, -// 2L, -// 2L, -// 3L, // 1L, // 1L, -// 0L, // 2L, -// 0L, -// 0L, -// 1L, +// 2L, // 1L, // 0L, // 1L, // 0L, // 0L, +// 3L, +// 2L, // 1L, -// 0L, -// 0L, -// 0L, // 1L, -// 2L, -// 2L, -// 2L, // 1L, // 0L, -// 0L, // 2L, // 1L, -// 4L, // 1L, +// 0L, +// 2L, +// 2L, // 1L, +// 1L, +// 2L, // 3L, +// 2L, // 0L, // 0L, // 2L, // 0L, // 0L, +// 3L, // 1L, +// 3L, +// 2L, +// 0L, // 1L, // 0L, +// 1L, +// 1L, +// 3L, // 0L, +// 4L, // 0L, // 2L, // ... diff --git a/index.html b/index.html index 047e387..6efefcf 100644 --- a/index.html +++ b/index.html @@ -109,11 +109,11 @@

Introduction

Importing

To add this library to an sbt project

-
libraryDependencies += "ai.dragonfly" %%% "slash" %  "0.1"
+
libraryDependencies += "ai.dragonfly" %%% "slash" %  "0.2"

To use this library in ammonite / mill

-
import $ivy.`ai.dragonfly::slash:0.1
+
import $ivy.`ai.dragonfly::slash:0.2

scala-cli

-
using dep ai.dragonfly::slash:0.1
+
using dep ai.dragonfly::slash:0.2

Elevator pitch

import slash.vector.*