A method of one of adjusting and locally modifying a resulting direction of magnetization in a layer of a magnetoresistive layer system having a ferromagnetic layer and an adjacent antiferromagnetic layer, the ferromagnetic layer having a resulting magnetization with an associated resulting direction of magnetization that is one of induced and influenceable by the adjacent antiferromagnetic layer, the method comprising:
- heating at least the antiferromagnetic layer by a heated stamp over a threshold temperature above which an influence of the antiferromagnetic layer on the resulting direction of magnetization of the adjacent ferromagnetic layer at least largely disappears;
- exposing at least an area of the ferromagnetic layer adjacent to the adjacent antiferromagnetic layer to an external magnetic field of a predefined direction;
- and
- subsequently cooling the antiferromagnetic layer again below the threshold temperature.