double->float, copyMatrix