Skip to content

Commit 57f053c

Browse files
amontoisontmigot
andauthored
Update src/nlp/api.jl
Co-authored-by: Tangi Migot <tangi.migot@gmail.com>
1 parent 6866c0e commit 57f053c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/nlp/api.jl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1316,11 +1316,11 @@ function tensor_projection(
13161316
nlp::AbstractNLPModel{T, S},
13171317
n::Int,
13181318
x::AbstractVector,
1319-
directions::Tuple{Int, Vararg{Int}},
1319+
directions::Tuple{Int, N},
13201320
args...
1321-
) where {T, S}
1321+
) where {T, S, N <: Integer}
13221322
@lencheck nlp.meta.nvar x
1323-
m = n - length(directions)
1323+
m = n - N
13241324
@assert m 1
13251325
dim = NTuple{m, Int}(nlp.meta.nvar for i = 1:m)
13261326
P = similar(x, dim)

0 commit comments

Comments
 (0)