Skip to content

Commit

Permalink
Merge pull request #199 from Kotlin/develop
Browse files Browse the repository at this point in the history
patch release 0.2.3
  • Loading branch information
devcrocod authored Feb 6, 2024
2 parents 2874672 + 79dedd1 commit dc5308a
Show file tree
Hide file tree
Showing 213 changed files with 11,597 additions and 2,452 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ CTestTestfile.cmake
_deps

### Kotlin template
.kotlin

# Compiled class file
*.class

Expand Down
16 changes: 8 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ repositories {
}
dependencies {
implementation "org.jetbrains.kotlinx:multik-core:0.2.2"
implementation "org.jetbrains.kotlinx:multik-default:0.2.2"
implementation "org.jetbrains.kotlinx:multik-core:0.2.3"
implementation "org.jetbrains.kotlinx:multik-default:0.2.3"
}
```

Expand All @@ -40,8 +40,8 @@ repositories {
}

dependencies {
implementation("org.jetbrains.kotlinx:multik-core:0.2.2")
implementation("org.jetbrains.kotlinx:multik-default:0.2.2")
implementation("org.jetbrains.kotlinx:multik-core:0.2.3")
implementation("org.jetbrains.kotlinx:multik-default:0.2.3")
}
```

Expand All @@ -52,7 +52,7 @@ kotlin {
sourceSets {
val commonMain by getting {
dependencies {
implementation("org.jetbrains.kotlinx:multik-core:0.2.2")
implementation("org.jetbrains.kotlinx:multik-core:0.2.3")
}
}
}
Expand All @@ -66,7 +66,7 @@ kotlin {
sourceSets {
val jvmName by getting {
dependencies {
implementation("org.jetbrains.kotlinx:multik-core-jvm:0.2.2")
implementation("org.jetbrains.kotlinx:multik-core-jvm:0.2.3")
}
}
}
Expand Down Expand Up @@ -259,8 +259,8 @@ c.sorted() // sort elements
a[2] // select the element at the 2 index
b[1, 2] // select the element at row 1 column 2
b[1] // select row 1
b[0..2, 1] // select elements at rows 0 and 1 in column 1
b[0..1..1] // select all elements at row 0
b[0..1, 1] // select elements at rows 0 to 1 in column 1
b[0, 0..2..1] // select elements at row 0 in columns 0 to 2 with step 1

for (el in b) {
print("$el, ") // 1.5, 2.1, 3.0, 4.0, 5.0, 6.0,
Expand Down
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
/*
* Copyright 2020-2022 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
*/
import java.time.Duration

buildscript {
Expand Down Expand Up @@ -28,19 +25,22 @@ allprojects {

group = "org.jetbrains.kotlinx"
version = multik_version

}

configure(subprojects.filter { it.name !in unpublished }) {
apply("$rootDir/gradle/publish.gradle")
}

tasks.withType<org.jetbrains.kotlin.gradle.targets.js.npm.tasks.KotlinNpmInstallTask>().configureEach {
args.add("--ignore-engines")
}

val sonatypeUser: String = System.getenv("SONATYPE_USER") ?: ""
val sonatypePassword: String = System.getenv("SONATYPE_PASSWORD") ?: ""

nexusPublishing {
packageGroup.set(project.group.toString())
repositories {
this.repositories {
sonatype {
username.set(sonatypeUser)
password.set(sonatypePassword)
Expand Down
9 changes: 9 additions & 0 deletions docs/c.list
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE categories
SYSTEM "https://resources.jetbrains.com/writerside/1.0/categories.dtd">
<categories>
<category id="ext" name="External resources" order="1"/>
<category id="get-start" name="Getting Started" order="2"/>
<category id="user-guide" name="User Guide" order="3"/>
<category id="api-docs" name="API Documentation" order="4"/>
</categories>
36 changes: 36 additions & 0 deletions docs/cfg/buildprofiles.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
<?xml version="1.0" encoding="UTF-8"?>
<buildprofiles xsi:noNamespaceSchemaLocation="https://resources.jetbrains.com/writerside/1.0/build-profiles.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

<variables>
<header-logo>kotlin_logo.svg</header-logo>
<product-web-url>https://kotlin.github.io/multik/welcome.html</product-web-url>
<enable-browser-edits>true</enable-browser-edits>
<browser-edits-url>https://github.com/Kotlin/multik/edit/develop/docs/</browser-edits-url>
<auto-convert-headings-to-chapters>true</auto-convert-headings-to-chapters>

<web-root>https://kotlin.github.io/multik/</web-root>
<feedback-widget>false</feedback-widget>
<webmaster>[email protected]</webmaster>
<search-scopes-provider>https://www.jetbrains.com/search/json/</search-scopes-provider>
<generate-sitemap-url-prefix>https://kotlin.github.io/multik/</generate-sitemap-url-prefix>

<custom-favicons>https://kotlinlang.org/assets/images/favicon.svg?v2</custom-favicons>
<generate-canonicals>true</generate-canonicals>
</variables>
<build-profile instance="mk">
<variables>
<noindex-content>false</noindex-content>
</variables>
</build-profile>
<footer>
<social type="blog" href="https://blog.jetbrains.com/kotlin/category/data-science/"/>
<social type="twitter" href="https://twitter.com/KotlinForData"/>
<social type="youtube" href="https://www.youtube.com/@Kotlin"/>
<link href="https://kotlinlang.slack.com/archives/C4W52CFEZ">Slack Community</link>
<link href="https://github.com/Kotlin/multik">GitHub</link>
<link href="https://github.com/jetbrains#code-of-conduct">Code of Conduct</link>
<copyright>2000–2024 JetBrains s.r.o.</copyright>
</footer>

</buildprofiles>
73 changes: 73 additions & 0 deletions docs/images/Kodee_Assets_Digital_Kodee-naughty.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions docs/images/kotlin_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/kotlin_notebook_installation.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/overview-architecture.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/overview-architecture_dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
139 changes: 139 additions & 0 deletions docs/mk.tree
Original file line number Diff line number Diff line change
@@ -0,0 +1,139 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE instance-profile
SYSTEM "https://resources.jetbrains.com/writerside/1.0/product-profile.dtd">

<instance-profile id="mk"
name="Multik"
start-page="welcome.topic" is-library="true" status="eap">

<toc-element toc-title="Welcome" topic="welcome.topic"/>
<toc-element topic="overview.md"/>
<toc-element toc-title="Getting-Started" topic="getting-started.topic">
<toc-element topic="quickstart.md"/>
<toc-element topic="installation.md"/>
<toc-element topic="supported-platforms.md"/>
</toc-element>
<toc-element toc-title="User Guide" topic="user-guide.topic">
<toc-element toc-title="About Multik"/>
<toc-element topic="basic.md">
<toc-element topic="creating-multidimensional-arrays.md"/>
<toc-element topic="indexing-and-slicing.md"/>
<toc-element topic="shape-manipulation.md"/>
<toc-element topic="iterating-over-arrays.md"/>
<toc-element topic="type-casting.md"/>
<toc-element topic="copies-and-views.md"/>
<toc-element topic="complex-numbers.md"/>
</toc-element>
<toc-element topic="engines-of-multik.md"/>
<toc-element topic="multik-on-different-platforms.md">
<toc-element toc-title="Multik on JVM" topic="multik-on-JVM.md"/>
<toc-element toc-title="Multik on JavaScript" topic="multik-on-JavaScript.md"/>
<toc-element toc-title="Multik on WASM" topic="multik-on-WASM.md"/>
<toc-element toc-title="Multik on Mobile (Android, iOS)" topic="multik-on-mobile.md"/>
<toc-element toc-title="Multik on Desktop (MacOS, Win, Linux)" topic="multik-on-desktop.md"/>
</toc-element>
<toc-element topic="input-and-output.md"/>
<toc-element topic="performance-and-optimization.md"/>
</toc-element>
<toc-element topic="documentation.md">
<toc-element topic="array-objects.md">
<toc-element topic="NDArray Class.md"/>
<toc-element topic="scalars.md"/>
<toc-element topic="type.md"/>
<toc-element topic="dimension.md"/>
<toc-element topic="indexing-routines.md"/>
<toc-element topic="iterating.md"/>
<toc-element topic="IO-operations.md"/>
</toc-element>
<toc-element topic="constants.md"/>
<toc-element topic="array-creation.md">
<toc-element topic="arange.md"/>
<toc-element topic="d1array.md"/>
<toc-element topic="d3array.md"/>
<toc-element topic="d3arrayIndices.md"/>
<toc-element topic="d4arrayIndices.md"/>
<toc-element topic="d2arrayIndices.md"/>
<toc-element topic="d2array.md"/>
<toc-element topic="d4array.md"/>
<toc-element topic="dnarray.md"/>
<toc-element topic="identity.md"/>
<toc-element topic="linspace.md"/>
<toc-element topic="meshgrid.md"/>
<toc-element topic="ndarray.md"/>
<toc-element topic="ndarrayOf.md"/>
<toc-element topic="ones.md"/>
<toc-element topic="rand.md"/>
<toc-element topic="toNDArray.md"/>
<toc-element topic="zeros.md"/>
</toc-element>
<toc-element topic="random-number-generation.md"/>
<toc-element topic="array-operations.md">
<toc-element topic="arithmetic-operations.md"/>
<toc-element topic="logical-operations.md"/>
<toc-element topic="comparison-operations.md"/>
<toc-element topic="universal-operations.md">
<toc-element topic="all.md"/>
<toc-element topic="any.md"/>
<toc-element topic="asSequence.md"/>
<toc-element topic="associate.md"/>
<toc-element topic="average.md"/>
<toc-element topic="chunked.md"/>
<toc-element topic="contains.md"/>
<toc-element topic="count.md"/>
<toc-element topic="distinct.md"/>
<toc-element topic="drop.md"/>
<toc-element topic="filter.md"/>
<toc-element topic="find.md"/>
<toc-element topic="first.md"/>
<toc-element topic="flatMap.md"/>
<toc-element topic="fold.md"/>
<toc-element topic="forEach.md"/>
<toc-element topic="groupNDArray.md"/>
<toc-element topic="indexOf.md"/>
<toc-element topic="intersect.md"/>
<toc-element topic="joinTo.md"/>
<toc-element topic="last.md"/>
<toc-element topic="map.md"/>
<toc-element topic="minimum.md"/>
<toc-element topic="maximum.md"/>
<toc-element topic="max.md"/>
<toc-element topic="min.md"/>
<toc-element topic="onEach.md"/>
<toc-element topic="partition.md"/>
<toc-element topic="windowed.md"/>
<toc-element topic="reduce.md"/>
<toc-element topic="reversed.md"/>
<toc-element topic="scan.md"/>
<toc-element topic="sorted.md"/>
<toc-element topic="sum.md"/>
<toc-element topic="toList.md"/>
<toc-element topic="toPrimitiveArray.md"/>
<toc-element topic="toArray.md"/>
<toc-element topic="toCollection.md"/>
<toc-element topic="toType.md"/>
</toc-element>
</toc-element>
<toc-element topic="mathematical.md"/>
<toc-element topic="linear-algebra.md">
<toc-element topic="dot.md"/>
<toc-element topic="matrix-operations.md"/>
<toc-element topic="eigenvalues-and-eigenvectors.md"/>
<toc-element topic="solving-systems-of-equations.md"/>
<toc-element topic="matrix-norms.md"/>
</toc-element>
<toc-element topic="statistics.md">
<toc-element topic="descriptive-statistics.md"/>
<toc-element topic="correlation-analysis.md"/>
<toc-element topic="hypothesis-testing.md"/>
<toc-element topic="probability-distributions.md"/>
</toc-element>
<toc-element href="https://kotlin.github.io/multik/" toc-title="API-Reference"/>
</toc-element>
<toc-element topic="examples.md"/>
<toc-element topic="FAQ.md"/>
<toc-element topic="additional-resources-and-links.md">
<toc-element topic="project-repository.md"/>
<toc-element topic="community-and-contribution-guidelines.md"/>
<toc-element topic="release-notes-and-updates.md"/>
</toc-element>
</instance-profile>
13 changes: 13 additions & 0 deletions docs/project.ihp
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ihp SYSTEM "https://resources.jetbrains.com/writerside/1.0/ihp.dtd">

<ihp version="2.0">
<topics dir="topics"/>
<images dir="images" web-path="multik"/>
<categories src="c.list"/>
<instance src="mk.tree" id="mk" version="%mk_latest_version%"/>
<settings>
<default-property element-name="chapter" property-name="show-structure-depth" value="2"/>
<default-property element-name="toc-element" property-name="show-structure-depth" value="2"/>
</settings>
</ihp>
6 changes: 6 additions & 0 deletions docs/topics/FAQ.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# FAQ

[//]: # (TODO)
<web-summary>TODO</web-summary>
<card-summary>TODO</card-summary>
<link-summary>TODO</link-summary>
6 changes: 6 additions & 0 deletions docs/topics/additional-resources-and-links.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Additional Resources and Links

[//]: # (TODO)
<web-summary>TODO</web-summary>
<card-summary>TODO</card-summary>
<link-summary>TODO</link-summary>
Loading

0 comments on commit dc5308a

Please sign in to comment.