Matrix Operations on Multi-core Architectures -- Multi-granularity Parallel Computing in