Skip to content

Commit

Permalink
Merge pull request #77 from JuliaConstraints/doc
Browse files Browse the repository at this point in the history
Update doc for JuliaConstraints website
  • Loading branch information
Azzaare authored Oct 8, 2024
2 parents 4e77f88 + 68d6caf commit de96bf0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ jobs:
fail-fast: false
matrix:
version:
- "1.9"
- "1" # automatically expands to the latest stable 1.x release of Julia
- "pre"
os:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ OrderedCollections = "1"
Random = "1"
TestItems = "0.1, 1"
Unrolled = "0.1"
julia = "1.9"
julia = "1.10"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
Expand Down
5 changes: 5 additions & 0 deletions src/layers/comparison.jl
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,11 @@ co_vars_minus_var(x; nvars, params...) = co_val_minus_var(x; val = nvars)


# Parametric layers
"""
make_comparisons(param::Symbol)
Generate the comparison functions for the given parameter.
"""
make_comparisons(param::Symbol) = make_comparisons(Val(param))

function make_comparisons(::Val{:none})
Expand Down
2 changes: 2 additions & 0 deletions src/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ end
Application of an operation from the transformation layer. Used to generate more efficient code for all compositions.
"""
function tr_in end

@unroll function tr_in(tr, X, x; params...)
@unroll for i = 1:length(tr)
tr[i](x, @view(X[:, i]); params...)
Expand Down

0 comments on commit de96bf0

Please sign in to comment.