Add initializer methods like setRandom and setOnes for diagonal matrices