mat: Clean up TriBand documentation
MODIFY
mat/diagonal.go
mat/diagonal.go
@@ -45,7 +45,7 @@ type Diagonal interface {
Bandwidth() (kl, ku int)
TBand() Banded
- // Triangular and TTri are included in the Diagonal interface
+ // Triangle and TTri are included in the Diagonal interface
// to allow the use of Diagonal types in triangular functions.
Triangle() (int, TriKind)
TTri() Triangular

MODIFY
mat/triband.go
mat/triband.go
@@ -68,7 +68,7 @@ var (
_ UntransposeTriBander = tTriBand
)
-// TransposeBandTri is a type for performing an implicit transpose of a TriBanded
+// TransposeTriBand is a type for performing an implicit transpose of a TriBanded
// matrix. It implements the TriBanded interface, returning values from the
// transpose of the matrix within.
type TransposeTriBand struct {
@@ -110,7 +110,7 @@ func (t TransposeTriBand) Bandwidth() (kl, ku int) {
return ku, kl
}
-// TTri performs an implicit transpose by returning the TriBand field.
+// TBand performs an implicit transpose by returning the TriBand field.
func (t TransposeTriBand) TBand() Banded {
return t.TriBanded
}
@@ -294,7 +294,7 @@ func (t *TriBandDense) TriBand() (n, k int, kind TriKind) {
return t.mat.N, t.mat.K, TriKind(!t.IsZero()) && t.triKind()
}
-// TBandTri performs an implicit transpose by returning the receiver inside a TransposeTriBand.
+// TTriBand performs an implicit transpose by returning the receiver inside a TransposeTriBand.
func (t *TriBandDense) TTriBand() TriBanded {
return TransposeTriBand{t}
}

mat: Clean up TriBand documentation (#710)