Skip to content

alexvasiu/numsc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numsc

Numsc

This is a library for data science similar to the numpy library from Python.

Supported functions

  • Arithmetic functions:
    • dot
    • add
    • multiply
    • subtract
    • divide
    • mod
    • +
    • -
    • /
    • *
    • %
  • Trigonometric functions:
    • sin
    • cos
    • tan
    • asin
    • acos
    • atan
    • hypot
    • arctan2
    • degrees
    • radians
    • deg2rad
    • rad2deg
    • sinh
    • cosh
    • tanh
  • Rounding functions:
    • around
    • floor
    • ceil
    • rint

All these functions are available for 1D and 2D arrays and all docs are same as for Numpy.

Installing

This package is available for Scala 2.11, 2.12 and 2.13. The package could be found here.

Sbt

Add to the build.sbt file:

externalResolvers += "Numsc packages" at "https://maven.pkg.github.com/com.avasiu/numsc"
libraryDependencies += "com.avasiu" %% "numsc" % "0.0.5"

Gradle

Add to the build.gradle file:

repositories {
    // ...
    maven {url 'https://maven.pkg.github.com/com.avasiu/numsc'}
    // ...
}

dependencies {
    // ...
    implementation "com.avasiu:numsc_2.13:0.0.5" // could also be numsc_2.11 or numsc_2.12
    // ...
}

Maven

Add to the pom.xml file:

<settings>
    <repositories>
        <repository>
         <id>numsc_repo</id>
         <name>Numsc packages</name>
         <url>https://maven.pkg.github.com/com.avasiu/numsc</url>
        </repository>
    </repositories>
    
    <dependencies>
        <dependency>
          <groupId>com.avasiu.numsc_2</groupId>
          <artifactId>13</artifactId> <!-- Could also be 11 or 12 -->
          <version>0.0.5</version>
        </dependency>
    </dependencies>
</settings>

Usage

import org.avasiu.numsc.ArrayHelpers._

val array: Array[Int] = Array(1, 2, 3)
val newArray = array * 3 // newArray will be Array(3, 6, 9)

About

The numpy libary for scala.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages