You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am wondering if it is possible to access the underlying TypedArray buffer after .pick or .slice? I noticed that calling .selection.data always returns the full array, not the selected subset.
one need arises from sorting each row of a 2-D matrix. I can achieve this by first calling .tolist() and then call Array.sort
although I would like to do the sorting directly on the TypedArray buffer. is this possible?
also, what is the best way to copy one row/column from one matrix to another?
I tried matrix1.pick(i).assign(matrix2.pick(j)), however, it does not seems to actually copy the value.
The text was updated successfully, but these errors were encountered:
this is not a bug, but a question
I am wondering if it is possible to access the underlying TypedArray buffer after
.pick
or.slice
? I noticed that calling.selection.data
always returns the full array, not the selected subset.one need arises from sorting each row of a 2-D matrix. I can achieve this by first calling
.tolist()
and then call Array.sortalthough I would like to do the sorting directly on the TypedArray buffer. is this possible?
also, what is the best way to copy one row/column from one matrix to another?
I tried
matrix1.pick(i).assign(matrix2.pick(j))
, however, it does not seems to actually copy the value.The text was updated successfully, but these errors were encountered: