Raskolnikov is a character with a complex psychology. It could be said that he is mentally ill, as he suffers from a kind of psychopathy that makes him see reality in a distorted way.
He has obsessive thinking and, to some critics, has a schizoid personality disorder.