io for mixed matrices