exp method
Element-wise exponential
Implementation
Matrix exp() {
Matrix result = Matrix.zeros(rowCount, columnCount, isDouble: true);
for (int i = 0; i < rowCount; i++) {
for (int j = 0; j < columnCount; j++) {
result[i][j] = math.exp(this[i][j]);
}
}
return result;
}