minor modifications for complex and mcsne in linsolve and trsolve