gonum / matrix

Matrix packages for the Go language [DEPRECATED]
446 stars 53 forks source link

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

Closed ghost closed 7 years ago

ghost commented 7 years ago

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)?

kortschak commented 7 years ago

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

ghost commented 7 years ago

Thanks.