This forum has been archived. All content is frozen. Please use KDE Discuss instead.

Numerically check is a sparse matrix is zero

Tags: None
(comma "," separated)
kbr
Registered Member
Posts
6
Karma
0
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!
User avatar
ggael
Moderator
Posts
3447
Karma
19
OS
you can test its squared norm with mat.squaredNorm().


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot], Yahoo [Bot]