mirror of
https://github.com/gonum/gonum.git
synced 2025-10-21 22:29:30 +08:00
Change Viewer interface to receiver assignment
This commit is contained in:
@@ -78,11 +78,11 @@ type Copier interface {
|
||||
|
||||
// A Viewer can extract a submatrix view of of the receiver, starting at row i, column j
|
||||
// and extending r rows and c columns. If i or j are out of range, or r or c extend beyond
|
||||
// the bounds of the matrix View will panic with ErrIndexOutOfRange. Viewer must not return
|
||||
// a copy of the submatrix; changes in the elements of the submatrix must be reflected in the
|
||||
// original and vice versa.
|
||||
// the bounds of the matrix View will panic with ErrIndexOutOfRange. View must retain the
|
||||
// receiver's reference to the original matrix such that changes in the elements of the
|
||||
// submatrix are reflected in the original and vice versa.
|
||||
type Viewer interface {
|
||||
View(i, j, r, c int) Blasser
|
||||
View(i, j, r, c int)
|
||||
}
|
||||
|
||||
// A Submatrixer can extract a copy of submatrix from a into the receiver, starting at row i,
|
||||
|
Reference in New Issue
Block a user