Skip to content

Commit

Permalink
Removed Demo project.
Browse files Browse the repository at this point in the history
Upgraded App version 0.101, NArr 0.103
Added:
  - import narr.* to related test classes to prevent linking errors in JS.
  - ClassTag to Sampleable trait.
  - sample method to sampleable trait.

ran githubWorkflowGenerate
  • Loading branch information
c committed Oct 3, 2023
1 parent 486e4ad commit 44294a7
Show file tree
Hide file tree
Showing 49 changed files with 28 additions and 3,033 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jobs:
- name: Submit Dependencies
uses: scalacenter/sbt-dependency-submission@v2
with:
modules-ignore: slash_3 docs_3 verification_3 jsdocs_sjs1_3 slash-tests_sjs1_3 slash_3 slash_3 demo_3 slash-tests_3 demo_native0.4_3 slash-tests_native0.4_3 demo_sjs1_3
modules-ignore: slash_3 docs_3 verification_3 jsdocs_sjs1_3 slash-tests_sjs1_3 slash_3 slash_3 slash-tests_3 slash-tests_native0.4_3
configs-ignore: test scala-tool scala-doc-tool test-internal

site:
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ libraryDependencies += "ai.dragonfly" %%% "slash" % "<LATEST_VERSION>"
- Linear Regression based on both QR Decomposition and Singular Value Decomposition.
- Principal Components Analysis

<a href="https://dragonfly-ai.github.io/slash/demo">Try the demo</a>.

&nbsp;&nbsp;&nbsp;Instead of case classes, traits, or wrappers, this library represents all runtime vector data as native arrays of double precision floating point values. However, it also uses Scala 3 features like opaque types, dependent types, and extension methods to decorate the array primitives with convenient syntax, e.g. overloaded operators like `+ - * / += -= *= /=`, and also, by expressing vector dimensionality as a type parameter, can prevent runtime errors resulting from trying to perform vector operations on vectors of mismatched dimensions at compile time. For example:

```scala
Expand Down
28 changes: 2 additions & 26 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import laika.ast.*
import laika.markdown.github.GitHubFlavor
import laika.parse.code.SyntaxHighlighting

val appVersion:String = "0.1"
val appVersion:String = "0.101"
val globalScalaVersion = "3.3.0"

ThisBuild / organization := "ai.dragonfly"
Expand Down Expand Up @@ -45,7 +45,7 @@ lazy val slash = crossProject(
.crossType(CrossType.Full)
.settings(
description := "High performance, low footprint, cross platform, Linear Algebra and Statistics Hacks!",
libraryDependencies += "ai.dragonfly" %%% "narr" % "0.101"
libraryDependencies += "ai.dragonfly" %%% "narr" % "0.103"
)
.jvmSettings(
libraryDependencies ++= Seq( "org.scala-js" %% "scalajs-stubs" % "1.1.0" )
Expand All @@ -65,30 +65,6 @@ lazy val verification = project
)
)

lazy val demo = crossProject(
JSPlatform,
JVMPlatform,
NativePlatform
)
.crossType(CrossType.Full)
.enablePlugins(NoPublishPlugin)
.dependsOn(slash)
.settings(
name := "demo",
Compile / mainClass := Some("Demo"),
libraryDependencies ++= Seq(
"ai.dragonfly" %%% "cliviz" % "0.102",
"ai.dragonfly" %%% "democrossy" % "0.102"
),
Compile / mainClass := Some("Demo")
)
.jsSettings(
Compile / fullOptJS / artifactPath := file("./docs/js/main.js"),
scalaJSUseMainModuleInitializer := true
)
.jvmSettings()
.nativeSettings()

lazy val root = tlCrossRootProject.aggregate(slash, tests).settings(name := "slash")

lazy val jsdocs = project
Expand Down
56 changes: 0 additions & 56 deletions demo/shared/src/main/scala/Demo.scala

This file was deleted.

48 changes: 0 additions & 48 deletions demo/shared/src/main/scala/ai/dragonfly/math/BijectionDemo.scala

This file was deleted.

16 changes: 0 additions & 16 deletions demo/shared/src/main/scala/ai/dragonfly/math/FactorialDemo.scala

This file was deleted.

21 changes: 0 additions & 21 deletions demo/shared/src/main/scala/ai/dragonfly/math/GammaDemo.scala

This file was deleted.

36 changes: 0 additions & 36 deletions demo/shared/src/main/scala/ai/dragonfly/math/LogDemo.scala

This file was deleted.

57 changes: 0 additions & 57 deletions demo/shared/src/main/scala/ai/dragonfly/math/ProbDistDemo.scala

This file was deleted.

5 changes: 0 additions & 5 deletions demo/shared/src/main/scala/ai/dragonfly/math/RandomDemo.scala

This file was deleted.

This file was deleted.

Loading

0 comments on commit 44294a7

Please sign in to comment.