Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

General refactor: Important performance improvements #2

Merged
merged 31 commits into from
Aug 25, 2024
Merged
Changes from 1 commit
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
4ba4546
Update Color.jl to work with Base functions
jofrevalles Apr 25, 2024
d923664
Add comment in PerlinBroadcasting.jl
jofrevalles Apr 25, 2024
8535ad5
Rename CustomExpr to GeneticExpr, refactor the internal
jofrevalles Apr 25, 2024
f071c75
Refactor custom math functions to work with new internals
jofrevalles Apr 25, 2024
ae843e4
Refactor ExprEvaluation.jl code, now much more performant
jofrevalles Apr 25, 2024
371aa2a
Refactor render functions to work with new internals
jofrevalles Apr 25, 2024
d1992ec
Update Genetic.jl, change CustomExpr to GeneticExpr
jofrevalles Apr 25, 2024
183a9fe
Refactor DynamicalSystems.jl with new internals, enhance code
jofrevalles Apr 25, 2024
8218da1
Update with new exports
jofrevalles Apr 25, 2024
3897ae9
Add meshgrid function to function utils
jofrevalles Apr 25, 2024
8d09337
Add WIP code in ExprGenerators.jl
jofrevalles Apr 25, 2024
0b9fcd6
Update tests with new internals
jofrevalles Apr 25, 2024
de5f8f2
Replace trunc with round to fix small precision problems
jofrevalles Apr 26, 2024
1a6a35b
Add adjust_brightness function
jofrevalles Apr 30, 2024
6bd8330
Minor fixes in Renderer.jl
jofrevalles Apr 30, 2024
44ba11b
Minor fixes in DynamicalSystems.jl
jofrevalles Apr 30, 2024
b36541f
Minor fixes in Colors.jl
jofrevalles Apr 30, 2024
d1dd203
Minor fix in Colors.jl
jofrevalles Apr 30, 2024
3c70fb9
Add fixes in ExprEvaluation.jl
jofrevalles Apr 30, 2024
7a42916
Fix generate_image_vectorized
jofrevalles Apr 30, 2024
d728fb9
Add f function
jofrevalles Apr 30, 2024
4eea001
Extend Base simple functions for proper Expr evaluation
jofrevalles May 2, 2024
db901da
Optimize core math functions by using @inbounds and removing merge
jofrevalles May 2, 2024
4687ce2
Update color functions
jofrevalles Aug 25, 2024
35131ab
Update DynamicalSystems.jl
jofrevalles Aug 25, 2024
5c03c86
update Expr functions
jofrevalles Aug 25, 2024
526b43a
Update boolean functions
jofrevalles Aug 25, 2024
f57abf4
Update UI.jl
jofrevalles Aug 25, 2024
28b83d3
Update Project.toml
jofrevalles Aug 25, 2024
408fcb3
Add some garbage examples -- to be cleaned
jofrevalles Aug 25, 2024
6019660
Update README.md
jofrevalles Aug 25, 2024
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
Prev Previous commit
Next Next commit
Add meshgrid function to function utils
  • Loading branch information
jofrevalles committed Apr 25, 2024
commit 3897ae9b438151debf2264eb13c38a958a771bc4
7 changes: 7 additions & 0 deletions src/Utils.jl
Original file line number Diff line number Diff line change
@@ -40,3 +40,10 @@ function capture_function(func_expr::Expr)

return strip(cleaned_str)
end

# Helper function to create meshgrid
function meshgrid(x, y)
X = repeat(reshape(x, 1, :), length(y), 1)
Y = repeat(reshape(y, :, 1), 1, length(x))
return X, Y
end