Example #1
0
func (t *TriDense) triKind() matrix.TriKind {
	return matrix.TriKind(isUpperUplo(t.mat.Uplo))
}
Example #2
0
// Triangle returns the dimension of t and its orientation. The returned
// orientation is only valid when n is not zero.
func (t *TriDense) Triangle() (n int, kind matrix.TriKind) {
	return t.mat.N, matrix.TriKind(!t.isZero()) && t.triKind()
}