[0056] where M is an integer of 1 to (N???1). [0057] When a constant current I flows in the thickness direction of two or more memory layers included in the magnetic memory, the magnetization of the Nth memory layer is reversed to provide an output change I??R. If the relationship (2) and/or (3) is established, the output change caused by the magnetization reversal of each memory layer can be sepa