Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
129 commits
Select commit Hold shift + click to select a range
fb3e388
fix some errors in docstring and code
shivasankarka Oct 22, 2025
5590571
fix docstring typos and mag val calc method in carray
shivasankarka Oct 22, 2025
722f21c
Merge remote-tracking branch 'upstream/pre-0.8' into unify_containers
shivasankarka Oct 26, 2025
59a927b
Merge remote-tracking branch 'upstream/pre-0.8' into improve_getter
shivasankarka Oct 26, 2025
4c9f5e8
Update pixi.toml
shivasankarka Oct 26, 2025
155f3e0
Merge branch 'prev0.8' into improve_getter
shivasankarka Oct 26, 2025
65d60fe
Update pixi.toml
shivasankarka Oct 28, 2025
56c8371
Update own_data.mojo
shivasankarka Oct 28, 2025
d89e8b3
create matrix_view.mojo
shivasankarka Oct 30, 2025
3680ae6
Update matrix_view.mojo
shivasankarka Oct 30, 2025
50437ae
change OwnData to DataContainer
shivasankarka Oct 30, 2025
2c746f3
add trait Buffered, add OwnData, RefData, change old OwnData to
shivasankarka Oct 30, 2025
e337bd0
fix matrix getter and setter with OwnData and RefData. Fix _MatrixIter
shivasankarka Oct 30, 2025
fcb9000
Delete matrix_view.mojo
shivasankarka Oct 30, 2025
067820c
fix formatting.
shivasankarka Oct 30, 2025
44ac4ad
[core][views] Implement foundation for views (#281)
shivasankarka Oct 31, 2025
4e25cf5
Merge remote-tracking branch 'upstream/pre-0.8' into views
shivasankarka Oct 31, 2025
f984b36
fix imports in Matrix
shivasankarka Oct 31, 2025
49f5f59
figured it out! Implemented correct way to return views. Implemented
shivasankarka Nov 2, 2025
6548749
fix all OwnData imports, fix Matrix input and returns parameters to
shivasankarka Nov 3, 2025
4cfa4c9
Merge remote-tracking branch 'upstream/pre-0.8' into improve_getter
shivasankarka Nov 3, 2025
0743c9f
fix all memcpy, copy errors (views) for nightly, prepare numojo for
shivasankarka Nov 3, 2025
fb3d593
fix problem with cumsum (result not added correctly)
shivasankarka Nov 3, 2025
fa13b57
fix wrong result accumulation in cumprod
shivasankarka Nov 3, 2025
3735e80
fix matrix views errors from RefData
shivasankarka Nov 4, 2025
b9a0259
remove debug prints
shivasankarka Nov 4, 2025
74695ee
fix formatting
shivasankarka Nov 4, 2025
fb946c8
Update run_tests.yaml
shivasankarka Nov 4, 2025
5d67371
[core][Matrix] Return Matrix views. (#280)
shivasankarka Nov 4, 2025
b544c4a
fix all tests to use TestSuite
shivasankarka Nov 4, 2025
ac338b3
fix F order setter
shivasankarka Nov 4, 2025
d0e24ab
fix cumprod for F order
shivasankarka Nov 4, 2025
4643757
update pixi tasks and github test workflow
shivasankarka Nov 4, 2025
654ddc3
Merge remote-tracking branch 'upstream/nightly' into views
shivasankarka Nov 4, 2025
cfd4d9e
update test task
shivasankarka Nov 4, 2025
46af08e
remove debug comments.
shivasankarka Nov 4, 2025
8cea3e4
Update pixi.toml
shivasankarka Nov 6, 2025
4359c9a
make is_own_data and is_ref_data a static method, add __str__
shivasankarka Nov 6, 2025
6782efb
make datacontainer copyable.
shivasankarka Nov 6, 2025
6840983
remove redundant `C: Bool, F Bool in __str__` and add `order: C/F`
shivasankarka Nov 6, 2025
c4ccd33
update all relevant __getitem__ to return Matrix views and also add
shivasankarka Nov 6, 2025
ad18400
temporarily rename all view returning __getitem__ to `get` due to mojo
shivasankarka Nov 6, 2025
02ee53b
add set() to set arrays with views as inputs temporarily till Mojo fixes
shivasankarka Nov 6, 2025
c8686bb
implement new __setitem__ methods to set Matrix values and add
shivasankarka Nov 6, 2025
07b9e00
fix format
shivasankarka Nov 6, 2025
1f93215
fix typos spotted by github copilot review
shivasankarka Nov 6, 2025
3affbec
fix format
shivasankarka Nov 6, 2025
c63eee1
Update test_random.mojo
shivasankarka Nov 6, 2025
ad5a377
update nightly version
shivasankarka Nov 9, 2025
2ff44c0
Merge remote-tracking branch 'origin/views' into prev0.8
shivasankarka Nov 9, 2025
f1dde73
update data_container with unsafepointerv2
shivasankarka Nov 11, 2025
6d34a81
create two DataContainers to facilitate the transition to views without
shivasankarka Nov 11, 2025
675c2e7
update matrix to use DataContainerNew with UnsafePointerV2
shivasankarka Nov 11, 2025
615bb4c
fix all getitem, setitem in Matrix to work with new UnsafePointerV2
shivasankarka Nov 11, 2025
5806511
fix MaxtrixIter
shivasankarka Nov 12, 2025
70c1bf0
fix reorder layout input args
shivasankarka Nov 13, 2025
daa2662
fix iters and broadcast_to function
shivasankarka Nov 13, 2025
9440a28
removies unnecessary copies in arithmetic functions
shivasankarka Nov 13, 2025
8721f8b
fix ndarray constructor of matrix
shivasankarka Nov 13, 2025
d877e18
remove unnecessary lines that extend lifetimes
shivasankarka Nov 13, 2025
ee59cfd
update mojo nightly version
shivasankarka Nov 14, 2025
fc63a0e
Add DataContainerNew with more access methods to use the new
shivasankarka Nov 14, 2025
9f512d8
fix matrix docstring
shivasankarka Nov 14, 2025
5f4d299
add where conditional to basic matrix constructor
shivasankarka Nov 14, 2025
f07ff82
fix all lifetime methods of Matrix
shivasankarka Nov 14, 2025
4df0a73
add load store methods to DataContainerNew
shivasankarka Nov 14, 2025
4d6ef4e
fix LegacyUnsafePointer imports temporarily for NDArray related structs
shivasankarka Nov 14, 2025
5ce17dc
Update ndarray.mojo
shivasankarka Nov 14, 2025
be1d0ed
fix all __getitem__ and __setitem__ in Matrix to return and set views
shivasankarka Nov 14, 2025
5c92ff1
fix matrix aliases, fix matrix arithmetics and logical operation
shivasankarka Nov 14, 2025
8dc4f29
Update data_container.mojo
shivasankarka Nov 15, 2025
fbcc09b
setup basic iterator for matrix (dangling pointer)
shivasankarka Nov 15, 2025
0aafb6f
fix all other methods in the Matrix struct to work with views.
shivasankarka Nov 15, 2025
3e368e5
correct the MatrixImpl and Matrix arguments and return types
shivasankarka Nov 19, 2025
3ad2e8f
fix origin errors in DataContainerNew
shivasankarka Nov 19, 2025
ecbb339
implement the correct iterator method for Matrix. The new matrix
shivasankarka Nov 20, 2025
262ff76
the new matrix iterator returns mutable views with correct origins.
shivasankarka Nov 20, 2025
894911b
add explanatory docstrings for the new aliases of MatrixImpl type
shivasankarka Nov 20, 2025
808d2d6
remove debug prints, rewrite some docstrings in matrix
shivasankarka Nov 20, 2025
86445cd
Wrap long lines in MatrixImpl
shivasankarka Nov 20, 2025
7deb3d5
add a create_copy() method to create deep copies.
shivasankarka Nov 20, 2025
2cc3a40
pin modular nightly version for correct v0.25.7 testing
shivasankarka Nov 20, 2025
2e8c9e0
fix some tests
shivasankarka Nov 20, 2025
5225844
fix format
shivasankarka Nov 20, 2025
7f0ca4f
track pixi lock file
shivasankarka Nov 20, 2025
2402acf
update Mojo to 25.7.0
shivasankarka Nov 21, 2025
e1b20c6
temporarily comment out gt, lt checks of matrix in test_matrix
shivasankarka Nov 21, 2025
06c2b51
remove lifetime extenders in test_matrix
shivasankarka Nov 21, 2025
005c749
fix all constructor docs
shivasankarka Nov 21, 2025
8fa51e1
fix all getitem and setiitem docs
shivasankarka Nov 21, 2025
a30bcc2
rewrite all docstrings in matrix
shivasankarka Nov 21, 2025
2a6353a
add examples to all methods in MatrixImpl
shivasankarka Nov 21, 2025
9efb930
fix reshape function for C, F matrices
shivasankarka Nov 21, 2025
6691583
fix test errors from gt
shivasankarka Nov 21, 2025
d275407
fix format
shivasankarka Nov 21, 2025
aaf8cf9
update complex_simd with better constructors and clean access methods.
shivasankarka Nov 22, 2025
295ef83
update complex simd docs
shivasankarka Nov 22, 2025
7d3cac5
fix some missing dtypes
shivasankarka Nov 22, 2025
17df060
fix return type error in complex dtype
shivasankarka Nov 22, 2025
b373cd8
improve docstring of constructors in complex ndarray and ndarray
shivasankarka Nov 22, 2025
e7a0ce9
fix some typos in docstring
shivasankarka Nov 22, 2025
9a44d16
fix docstring, error messages, add types, remove unnecessary if
shivasankarka Nov 23, 2025
4f3ab4b
add scalar operator arithmetic methods to complex_simd to enable use of
shivasankarka Nov 25, 2025
d2a1ce5
[core][Matrix][Tests] Upgrade Matrix & Tests (#284)
shivasankarka Nov 26, 2025
05886be
fix format
shivasankarka Nov 26, 2025
cb5ead4
[core][Matrix] Implement full support for Matrix views (#286)
shivasankarka Dec 4, 2025
03563f2
Merge remote-tracking branch 'upstream/pre-0.8' into docs-temp
shivasankarka Dec 4, 2025
5d5c099
fix all merging errors
shivasankarka Dec 4, 2025
2b46ecf
fix commented out matrix test code
shivasankarka Dec 4, 2025
dcfdd19
fix test_matrix format
shivasankarka Dec 4, 2025
4038c8f
[core][Matrix][Docs] Improve Matrix docstrings (#287)
shivasankarka Dec 4, 2025
9227912
Merge branch 'docs-temp' into complex
shivasankarka Dec 4, 2025
f2f3977
Merge remote-tracking branch 'upstream/pre-0.8' into complex
shivasankarka Dec 4, 2025
b69c49f
add missing cdtype and fix example
shivasankarka Dec 4, 2025
7fcc438
Update README.MD
shivasankarka Dec 4, 2025
5e8ab90
update complex_simd getitem, setitem, item, itemset methods
shivasankarka Dec 5, 2025
ba73e4a
add more arithmetic overloads to supports complex number creation with
shivasankarka Dec 5, 2025
836ee34
add ImaginaryUnit and add all possible overload functions to enable `1j`
shivasankarka Dec 5, 2025
579206a
add `1j` to prelude
shivasankarka Dec 5, 2025
7d9232c
Update prelude.mojo
shivasankarka Dec 5, 2025
4788abc
improve docstrings of ComplexSIMD, ImaginaryUnit
shivasankarka Dec 5, 2025
0fd9b3f
[core][Complex] Improve Complex-number ecosystem (#290)
shivasankarka Dec 6, 2025
2534972
Merge remote-tracking branch 'upstream/pre-0.8' into complex
shivasankarka Dec 8, 2025
a35ff08
created ellipsis, newaxis
shivasankarka Dec 9, 2025
aa6cb21
Merge branch 'complex' into improve_getter
shivasankarka Dec 9, 2025
639e23b
create ellipsis, newaxis structs
shivasankarka Dec 12, 2025
fe6e4ac
Update item to user new unsafepointer, remove unsafe constructors,
shivasankarka Dec 12, 2025
3bad990
remove "item" alias and fix those errors
shivasankarka Dec 12, 2025
1863203
remove "shape" alias
shivasankarka Dec 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 36 additions & 4 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,46 @@ jobs:

- name: Pixi install
run: |
pixi install
pixi install --locked

- name: Build package
run: |
pixi run mojo package numojo
cp numojo.mojopkg tests/

- name: Run tests
- name: Run Core Tests
run: |
pixi run mojo test tests -I .
pixi run mojo test tests/core/test_matrix.mojo -I . -D F_CONTIGUOUS
echo "Testing core modules..."
pixi run mojo run -I tests/ tests/core/test_array_indexing_and_slicing.mojo
pixi run mojo run -I tests/ tests/core/test_array_methods.mojo
pixi run mojo run -I tests/ tests/core/test_bool_masks.mojo
pixi run mojo run -I tests/ tests/core/test_complexArray.mojo
pixi run mojo run -I tests/ tests/core/test_complexSIMD.mojo
pixi run mojo run -I tests/ tests/core/test_matrix.mojo
pixi run mojo run -I tests/ -D F_CONTIGUOUS tests/core/test_matrix.mojo
pixi run mojo run -I tests/ tests/core/test_shape_strides_item.mojo

- name: Run Routine Tests
run: |
echo "Testing routines..."
pixi run mojo run -I tests/ tests/routines/test_creation.mojo
pixi run mojo run -I tests/ tests/routines/test_functional.mojo
pixi run mojo run -I tests/ tests/routines/test_indexing.mojo
pixi run mojo run -I tests/ tests/routines/test_io.mojo
pixi run mojo run -I tests/ tests/routines/test_linalg.mojo
pixi run mojo run -I tests/ tests/routines/test_manipulation.mojo
pixi run mojo run -I tests/ tests/routines/test_math.mojo
pixi run mojo run -I tests/ tests/routines/test_random.mojo
pixi run mojo run -I tests/ tests/routines/test_statistics.mojo
pixi run mojo run -I tests/ tests/routines/test_sorting.mojo
pixi run mojo run -I tests/ tests/routines/test_searching.mojo

- name: Run Science Tests
run: |
echo "Testing science modules..."
pixi run mojo run -I tests/ tests/science/test_signal.mojo

- name: Cleanup
if: always()
run: |
rm -f tests/numojo.mojopkg
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@

# pixi environments
.pixi
pixi.lock
/venv


Expand All @@ -28,6 +27,7 @@ numojo.mojopkg
/bench.mojo
/test*.mojo
/test*.ipynb
bench_*.mojo
/tempCodeRunnerFile.mojo
kgen.trace.*

Expand Down
10 changes: 5 additions & 5 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -205,18 +205,18 @@ backend = {name = "pixi-build-mojo", version = "0.*"}
name = "your_package_name"

[package.host-dependencies]
modular = ">=25.5.0,<26"
modular = ">=25.7.0,<26"

[package.build-dependencies]
modular = ">=25.5.0,<26"
modular = ">=25.7.0,<26"
numojo = { git = "https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo", branch = "main"}

[package.run-dependencies]
modular = ">=25.5.0,<26"
modular = ">=25.7.0,<26"
numojo = { git = "https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo", branch = "main"}

[dependencies]
max = "=25.5.0"
modular = ">=25.7.0,<26"
numojo = { git = "https://github.com/Mojo-Numerics-and-Algorithms-group/NuMojo", branch = "main"}
```

Expand All @@ -227,7 +227,7 @@ pixi install

**Branch Selection:**
- **`main` branch**: Provides stable release. Currently supports NuMojo v0.7.0, compatible with Mojo 25.3.0. For earlier NuMojo versions, use Method 2.
- **`pre-x.y` branches**: Active development branch supporting the latest Mojo version (currently 25.5.0). Note that this branch receives frequent updates and may have breaking changes in features and syntax.
- **`pre-x.y` branches**: Active development branch supporting the latest Mojo version (currently 25.7.0). Note that this branch receives frequent updates and may have breaking changes in features and syntax.

The package will be automatically available in your Pixi environment, and VSCode LSP will provide intelligent code hints.

Expand Down
Loading