diff --git a/matexp.h b/matexp.h index 100da1c..3e0bcc8 100644 --- a/matexp.h +++ b/matexp.h @@ -379,6 +379,15 @@ for(int i=0; i +NRMat > expi(const NRMat &x) +{ +NRMat r,i; +sincos(i,r,x); +return complexify(r,i); +} + //this simple implementation seems not to be numerically stable enough