We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6866c0e commit 57f053cCopy full SHA for 57f053c
src/nlp/api.jl
@@ -1316,11 +1316,11 @@ function tensor_projection(
1316
nlp::AbstractNLPModel{T, S},
1317
n::Int,
1318
x::AbstractVector,
1319
- directions::Tuple{Int, Vararg{Int}},
+ directions::Tuple{Int, N},
1320
args...
1321
-) where {T, S}
+) where {T, S, N <: Integer}
1322
@lencheck nlp.meta.nvar x
1323
- m = n - length(directions)
+ m = n - N
1324
@assert m ≥ 1
1325
dim = NTuple{m, Int}(nlp.meta.nvar for i = 1:m)
1326
P = similar(x, dim)
0 commit comments