Added partial support for complex and symmetric matrices