From 498dadb807f115bff512a0b05c6340f16a7ff1e6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZHU=20Yuhao=20=E6=9C=B1=E5=AE=87=E6=B5=A9?= Date: Thu, 1 May 2025 12:46:09 +0200 Subject: [PATCH 1/5] Up to PR #242 --- docs/changelog.md | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 36bcbe22..672923ad 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,6 +2,36 @@ This is a list of RELEASED changes for the NuMojo Package. +## xx/xx/2025 (v0.7.0) + +### ⭐️ New + +- Implement the `take_along_axis()` method. This method allows you to take elements from an array along a specified axis, using the indices provided in another array ([PR #226](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/226)). +- Add support for column-major memory layout for the `Matrix` type and for all matrix routines ([PR #232](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/232), [PR #233](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/233), [PR #234](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/234)). +- Add eigenvalue decomposition for symmetric matrices ([PR #238](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/238)). + +### 🦋 Changed + +- Improve the getter methods for `ComplexNDArray` ([PR #229](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/229)). +- Re-write the `argmax()` and `argmin()` methods to return indices along given axis ([PR #230](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/230)). + +### ❌ Removed + +- Remove the `numojo.CDType` (Complex Data Type) ([PR #231](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/231)). We will use the standard `CDType` from Mojo instead. +- Temporarily remove type coercion (`TypeCoercion`) until a better solution is available ([PR #242](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/242)). For now, please use implicit casting to convert arrays to targeted data types. + +### 🛠️ Fixed + +- Fixed broken links in zhs and zht readme files ([Issue #239](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/issues/239), [PR #240](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/240)). + +### 📚 Documentatory and testing + +## 08/03/2025 (v0.6.1) + +### 🛠️ Fixed + +Fix the bug that numojo crashes on "mojopkg" ([PR #227](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/227)). + ## 28/02/2025 (v0.6) ### ⭐️ New From 049cf1fd23898565cbb20130edf39eec2cc55d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZHU=20Yuhao=20=E6=9C=B1=E5=AE=87=E6=B5=A9?= Date: Thu, 29 May 2025 19:42:54 +0200 Subject: [PATCH 2/5] To 246 --- docs/changelog.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/changelog.md b/docs/changelog.md index 672923ad..576725fd 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -12,6 +12,7 @@ This is a list of RELEASED changes for the NuMojo Package. ### 🦋 Changed +- Update the syntax to accommodate to Mojo 25.3 ([PR #245](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/245)) - Improve the getter methods for `ComplexNDArray` ([PR #229](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/229)). - Re-write the `argmax()` and `argmin()` methods to return indices along given axis ([PR #230](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/230)). @@ -19,10 +20,12 @@ This is a list of RELEASED changes for the NuMojo Package. - Remove the `numojo.CDType` (Complex Data Type) ([PR #231](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/231)). We will use the standard `CDType` from Mojo instead. - Temporarily remove type coercion (`TypeCoercion`) until a better solution is available ([PR #242](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/242)). For now, please use implicit casting to convert arrays to targeted data types. +- Remove redundant `self: Self` ([PR #246](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/246)). ### 🛠️ Fixed - Fixed broken links in zhs and zht readme files ([Issue #239](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/issues/239), [PR #240](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/240)). +- Fix error in division of an array and a scalar ([PR #244](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/244)). ### 📚 Documentatory and testing From 6b73abde6bc86b6588ae829df1a6c5fa2b90ce4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZHU=20Yuhao=20=E6=9C=B1=E5=AE=87=E6=B5=A9?= Date: Thu, 29 May 2025 21:59:57 +0200 Subject: [PATCH 3/5] To 250 --- docs/changelog.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 576725fd..3267a6be 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -12,9 +12,11 @@ This is a list of RELEASED changes for the NuMojo Package. ### 🦋 Changed -- Update the syntax to accommodate to Mojo 25.3 ([PR #245](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/245)) +- Update the syntax to accommodate to Mojo 25.3 ([PR #245](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/245)). +- Migrate Magic to Pixi ([PR #250](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/250)). - Improve the getter methods for `ComplexNDArray` ([PR #229](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/229)). - Re-write the `argmax()` and `argmin()` methods to return indices along given axis ([PR #230](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/230)). +- Replaced IO backend with NumPy ([PR #250](https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo/pull/250)). ### ❌ Removed From fff11eefdffd73bd00d22a7b0a39dbdc4811575c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZHU=20Yuhao=20=E6=9C=B1=E5=AE=87=E6=B5=A9?= Date: Thu, 29 May 2025 22:01:46 +0200 Subject: [PATCH 4/5] Update changelog --- docs/changelog.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/changelog.md b/docs/changelog.md index 3267a6be..68f2f88e 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -2,7 +2,7 @@ This is a list of RELEASED changes for the NuMojo Package. -## xx/xx/2025 (v0.7.0) +## 01/06/2025 (v0.7.0) ### ⭐️ New From be573312d6967c709e0af78b1b497d3ad5933758 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?ZHU=20Yuhao=20=E6=9C=B1=E5=AE=87=E6=B5=A9?= Date: Fri, 30 May 2025 12:35:46 +0200 Subject: [PATCH 5/5] Update magic to pixi in readme --- README.MD | 24 +++++++++++++----------- 1 file changed, 13 insertions(+), 11 deletions(-) diff --git a/README.MD b/README.MD index 30cb7ff9..c703cb2e 100644 --- a/README.MD +++ b/README.MD @@ -187,29 +187,31 @@ fn main() raises: There are three approach to install and use the Numojo package. -### Use magic CLI +### Add `numojo` in `pixi.toml` -You can use the following command in the terminal to install `numojo`. +You can add the package `numojo` of a specific version in the dependencies section of your toml file. -```console -magic add numojo +```toml +[dependencies] +numojo = "=0.7.0" ``` -### Add in toml file +Then, you can run `pixi install` to install the package. -You can add `numojo` in the dependencies section of your toml file. +The following table shows the version of `numojo` and the corresponding version of `mojo` that is required. -```toml -[dependencies] -numojo = "=0.6" -``` +| `numojo` | `mojo` | +| -------- | ------ | +| v0.7.0 | ==25.3 | +| v0.6.1 | ==25.2 | +| v0.6.0 | ==25.2 | ### Build package This approach involves building a standalone package file `mojopkg`. 1. Clone the repository. -2. Build the package using `magic run package`. +2. Build the package using `pixi run package`. 3. Move the `numojo.mojopkg` into the directory containing the your code. ### Include NuMojo's path for compiler and LSP