Registered Member
|
Hi,
how can I check if a sparse matrix numerically (up to prescribed epsilon) is zero? Is there an equivalent to the isZero() method for full matrices? Of course, I can write a sparse loop, but is there something already prepared? Thanks in advance! |
Moderator
|
you can test its squared norm with mat.squaredNorm().
|
Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]