mat: rename Cloner=>ClonerFrom and Clone=>CloneFrom

This commit is contained in:
Dan Kortschak
2019-06-05 07:48:01 +09:30
parent 14af50e936
commit c5f01565d8
15 changed files with 34 additions and 34 deletions

View File

@@ -129,11 +129,11 @@ type RawColViewer interface {
RawColView(j int) []float64
}
// A Cloner can make a copy of a into the receiver, overwriting the previous value of the
// A ClonerFrom can make a copy of a into the receiver, overwriting the previous value of the
// receiver. The clone operation does not make any restriction on shape and will not cause
// shadowing.
type Cloner interface {
Clone(a Matrix)
type ClonerFrom interface {
CloneFrom(a Matrix)
}
// A Reseter can reset the matrix so that it can be reused as the receiver of a dimensionally