assert that columns and rows are nonzero in A
assert that rows and columns of A are nonzero