error in generating the AF matrix.  I didnt include the memmap copy from the A_mat to A_map.  this would explain the zeros