Skip to content
This repository has been archived by the owner on Dec 10, 2018. It is now read-only.

Commit

Permalink
Add Size method to cholesky
Browse files Browse the repository at this point in the history
  • Loading branch information
btracey committed Jan 25, 2016
1 parent 505787d commit ee5efbd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mat64/cholesky.go
Expand Up @@ -74,6 +74,11 @@ func (c *Cholesky) Det() float64 {
return math.Exp(c.LogDet())
}

// Dim returns the dimension of the factorized matrix.
func (c *Cholesky) Size() int {
return c.chol.mat.N
}

// LogDet returns the log of the determinant of the matrix that has been factorized.
func (c *Cholesky) LogDet() float64 {
var det float64
Expand Down

0 comments on commit ee5efbd

Please sign in to comment.