Change the partial domain and range in isl_union_map

12 views
Skip to first unread message

Kelvin Yang

unread,
Apr 6, 2023, 10:23:46 AM4/6/23
to isl Development
I have {[A[i]->B[j]] -> C[k]} and I want to get  {A[i]-> [B[j] -> C[k]]}
Is there a built-in function in ISL for this?

Thank you!

Sven Verdoolaege

unread,
Apr 6, 2023, 5:46:32 PM4/6/23
to Kelvin Yang, isl Development
On Thu, Apr 06, 2023 at 07:23:46AM -0700, Kelvin Yang wrote:
> I have {*[*A[i]->B[j]*]* -> C[k]} and I want to get {A[i]-> *[*B[j] -> C[k]
> *]*}
> Is there a built-in function in ISL for this?

It sound like you're looking for "curry".

>>> import isl
>>> isl.map("{ [A[i]->B[j]]->C[k] }").curry()
isl.map("{ A[i] -> [B[j] -> C[k]] }")

skimo

Kelvin Yang

unread,
Apr 17, 2023, 7:27:26 AM4/17/23
to isl Development

Thank you very much!
Sven Verdoolaege 在 2023年4月7日 星期五清晨5:46:32 [UTC+8] 的信中寫道:
Reply all
Reply to author
Forward
0 new messages