Skip to content

Conversation

@forfudan
Copy link
Collaborator

Updates the code to accommodate to Mojo v25.1. The changes include but are not limited to:

Change constructors.
str( -> String(
int( -> Int(
float( -> Float64(

Change index() to Int().
index(T) -> Int(T)

The function isdigit() becomes a method.
isdigit(a) -> a.isdigit()

Use explicit constructor for complex ndarray.

self._re = NDArray[dtype](shape, order)
self._im = NDArray[dtype](shape, order)

@forfudan forfudan marked this pull request as draft February 13, 2025 12:05
@forfudan forfudan marked this pull request as ready for review February 13, 2025 19:12
@forfudan forfudan requested a review from MadAlex1997 February 13, 2025 19:18
@MadAlex1997 MadAlex1997 merged commit 756740a into Mojo-Numerics-and-Algorithms-group:pre-0.6 Feb 13, 2025
2 checks passed
@forfudan forfudan deleted the mojo branch February 13, 2025 21:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants