Python - writing an in-place option in my function [how to prevent overwriting my input vector]

后端 未结 0 607
逝去的感伤
逝去的感伤 2020-12-30 06:25

I am writing a function that pulls the top x values from a sparse vector (fewer values if there are less than x). I would like to include an "in-place" option like

相关标签:
回答
  • 消灭零回复
提交回复
热议问题