gonum / matrix

Matrix packages for the Go language [DEPRECATED]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Question: how add a new column/row to the beginning and end of a matrix?

opened this issue · comments

Is it possible to add a column or row to the left or right of a matrix using the provided methods (ie. without using a loop to copy elements)?

No, it's not (you can make a larger matrix and offset copy. This reflects the behaviour or slices in the language.

Thanks.