func (t *TriDense) triKind() matrix.TriKind { return matrix.TriKind(isUpperUplo(t.mat.Uplo)) }
// 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() }