tan method
Element-wise tangent
Implementation
Matrix tan() {
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.tan(this[i][j]);
}
}
return result;
}