Alloys characterised by their composition containing rare earth metals and magnetic transition metals, e.g. SmCo5