gonum / matrix

Matrix packages for the Go language [DEPRECATED]
446 stars 53 forks source link

Add power function for symmetric positive definite matrices #424

Closed btracey closed 7 years ago

btracey commented 7 years ago

General non-integer Pow cases may have complex values.

We would have

Dense.Pow(a, int)
SymDense.PowSym(s,int)
SymDense.PowPSD(s, float64)
CDense.Pow(a, float64)
CSymDense.PowSym(s,float64)

If that sounds good then I'll work on the rest.

kortschak commented 7 years ago

SGTM

btracey commented 7 years ago

I'll fix the things you mention, but I also found a bug in equalApprox where everything compared to true.