Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

powm function does not give the correct answer #328

Open
LiangtaoPeng opened this issue Sep 16, 2022 · 0 comments
Open

powm function does not give the correct answer #328

LiangtaoPeng opened this issue Sep 16, 2022 · 0 comments

Comments

@LiangtaoPeng
Copy link

When I use the powm function, I found sometimes it does not return the correct answer. For example

kernel = [3.850631961339304 -0.010072156399475053 -0.010258539801313745 -0.010293814829149936 -0.010306218470668904 -0.010311969710167707 -0.010315096531477644 -0.01031698282267339 -0.010318207467439057 -0.010319047247864846 -0.010319648021727567 -0.010320092571471375 -0.010320430713653716 -0.010320693883116239 -0.010320902709578604 -0.010321071186271208 -0.010321209076191842 -0.010321323358776485 -0.010321419130643113 -0.010321500183758627 -0.0103215693866017 -0.010321628941462902 -0.010321680561834096 -0.010321725597041346 -0.010321765121319408 -0.010321799998466523 -0.010321830929441219 -0.010321858487857062 -0.010321883146768419 -0.01032190529910634 -0.010321925273428461 -0.010321943346171831; -0.011491135932353687 3.850631961339304 -0.011491135932353687 -0.011703777289488942 -0.011744021912765874 -0.0117581729967143 -0.0117647344789073 -0.011768301811192823 -0.011770453845740205 -0.011771851020179622 -0.01177280911005068 -0.011773494521778546 -0.011774001700314323 -0.011774387480442 -0.01177468772558784 -0.011774925971815375 -0.011775118183740938 -0.011775275499787165 -0.011775405882662762 -0.011775515147004404 -0.011775607618996617 -0.011775686571233367 -0.011775754516267018 -0.01177581340898857 -0.011775864788819038 -0.011775909881332878 -0.01177594967202144 -0.011775984960595271 -0.011776016401479426 -0.01177604453437283 -0.011776069807563214 -0.011776092595895876; -0.01347567802453469 -0.013230843695191442 3.850631961339304 -0.013230843695191442 -0.01347567802453469 -0.013522015507903046 -0.013538309004119726 -0.013545863866042467 -0.013549971276846446 -0.013552449120019716 -0.013554057820563476 -0.013555160961054073 -0.013555950141122227 -0.013556534104271906 -0.013556978289825014 -0.013557323990773838 -0.01355759830643906 -0.013557819618410172 -0.01355800075141831 -0.013558150873691489 -0.013558276680176963 -0.013558383152024681 -0.013558474057285047 -0.013558552288899867 -0.013558620097722098 -0.013558679256234364 -0.01355873117555774 -0.01355877699038266 -0.013558817621492357 -0.013558853822388974 -0.013558886214479494 -0.013558915313920457; -0.01573390113022342 -0.015679983917843726 -0.015395100415904259 3.850631961339304 -0.015395100415904259 -0.015679983917843726 -0.01573390113022342 -0.015752859861515294 -0.015761650522232655 -0.015766429809422004 -0.01576931296981193 -0.015771184816156796 -0.01577246840464267 -0.015773386676120695 -0.015774066161989894 -0.01577458300591542 -0.015774985255457747 -0.01577530444275291 -0.01577556195618871 -0.015775772718322492 -0.015775947397090033 -0.015776093782575454 -0.015776217670728388 -0.015776323445964184 -0.015776414474442307 -0.015776493375202632 -0.01577656221066451 -0.015776622622775432 -0.01577667593183466 -0.015776723209244038 -0.015776765331761044 -0.01577680302244032; -0.01855444301028428 -0.01853211254442635 -0.01846860637137796 -0.01813305747754062 3.850631961339304 -0.01813305747754062 -0.01846860637137796 -0.01853211254442635 -0.01855444301028428 -0.018564797054866466 -0.018570426319175555 -0.018573822238114386 -0.01857602698484832 -0.01857753885441481 -0.01857862043680409 -0.01857942076651864 -0.018580029529070053 -0.01858050331708535 -0.018580879270564895 -0.01858118258173575 -0.01858143082707243 -0.018581636571760443 -0.018581808991319212 -0.01858195491248486 -0.01858207949942347 -0.018582186716952505 -0.018582279649897625 -0.018582360727471204 -0.018582431883634534 -0.018582494673496822 -0.01858255035900445 -0.018582599972842707; -0.02218078623986069 -0.02216841546904555 -0.022141735549606217 -0.02206585985621001 -0.021664953869183518 3.850631961339304 -0.021664953869183518 -0.02206585985621001 -0.022141735549606217 -0.02216841546904555 -0.02218078623986069 -0.022187511953476548 -0.02219156931816777 -0.02219420349810919 -0.022196009844581914 -0.022197302093977717 -0.022198258309241877 -0.02219898564453048 -0.02219955171539348 -0.02220000089583651 -0.02220036328494451 -0.02220065988267901 -0.0222009057016304 -0.022201111704495142 -0.02220128604769822 -0.022201434901264756 -0.022201563002266115 -0.022201674036379994 -0.022201770905972647 -0.02220185592169589 -0.022201930941557906 -0.022201997473302787; -0.026961480176208127 -0.026953307326782507 -0.026938274803406468 -0.026905854308464327 -0.0268136528481272 -0.026326486065100668 3.850631961339304 -0.026326486065100668 -0.0268136528481272 -0.026905854308464327 -0.026938274803406468 -0.026953307326782507 -0.026961480176208127 -0.026966410542349193 -0.02696961150469324 -0.02697180651307083 -0.026973376808854362 -0.02697453876784025 -0.026975422599970964 -0.02697611046927254 -0.026976656297467955 -0.0269770966599012 -0.026977457074983148 -0.02697775578548294 -0.026978006112881783 -0.026978217968578966 -0.026978398850170903 -0.026978554513979264 -0.02697868943870928 -0.026978807151213847 -0.02697891045931534 -0.026979001620799647; -0.033442230440465986 -0.033436116076806556 -0.033425980567172546 -0.0334073380745036 -0.03336713199438233 -0.03325278891269189 -0.03264863198215313 3.850631961339304 -0.03264863198215313 -0.03325278891269189 -0.03336713199438233 -0.0334073380745036 -0.033425980567172546 -0.033436116076806556 -0.033442230440465986 -0.03344620009449809 -0.03344892222082138 -0.033450869613611024 -0.033452310609998266 -0.03345340668905334 -0.03345425974599468 -0.03345493665151992 -0.03345548276432002 -0.033455929730897414 -0.033456300174911593 -0.033456610616916634 -0.033456873348474254 -0.033457097667683164 -0.033457290713210755 -0.033457458039296166 -0.03345760401974458 -0.03345773213665993; -0.04252262881342005 -0.0425175818985404 -0.04250980825562773 -0.04249692223231913 -0.04247322065205954 -0.042422103687614864 -0.04227673086779176 -0.04150862146134887 3.850631961339304 -0.04150862146134887 -0.04227673086779176 -0.042422103687614864 -0.04247322065205954 -0.04249692223231913 -0.04250980825562773 -0.0425175818985404 -0.04252262881342005 -0.042526089654020834 -0.042528565518558915 -0.04253039756388314 -0.04253179109028307 -0.04253287564468899 -0.042533736244766425 -0.04253443055837525 -0.042534998820055465 -0.04253546979293927 -0.04253586448082941 -0.042536198510897724 -0.042536483704505045 -0.04253672913756742 -0.042536941871599995 -0.04253712746734494; -0.0557666231927748 -0.0557620848165619 -0.055755466540518425 -0.055745272567391035 -0.05572837446996071 -0.05569729338288772 -0.055630261108861684 -0.05543962634014672 -0.05443236542835309 3.850631961339304 -0.05443236542835309 -0.05543962634014672 -0.055630261108861684 -0.05569729338288772 -0.05572837446996071 -0.055745272567391035 -0.055755466540518425 -0.0557620848165619 -0.0557666231927748 -0.055769869919805086 -0.05577227237397143 -0.0557740997759801 -0.05577552200730629 -0.055776650555936766 -0.055777561044667696 -0.055778306235096754 -0.05577892384578137 -0.05577944142007581 -0.05577987945068494 -0.05578025343956015 -0.05578057528841151 -0.05578085425736284; -0.07606527768603163 -0.07606084943125026 -0.07605465947872975 -0.07604563272278118 -0.07603172902535865 -0.07600868148238875 -0.07596628956857597 -0.07587486334604669 -0.07561485401413023 -0.07424103727279588 3.850631961339304 -0.07424103727279588 -0.07561485401413023 -0.07587486334604669 -0.07596628956857597 -0.07600868148238875 -0.07603172902535865 -0.07604563272278118 -0.07605465947872975 -0.07606084943125026 -0.07606527768603163 -0.07606855442566818 -0.07607104684391182 -0.07607298664439756 -0.07607452588709407 -0.07607576771495288 -0.07607678409022857 -0.0760776264577703 -0.07607833238433041 -0.0760789298201854 -0.07607943990865584 -0.07607987888264461; -0.10915500719823426 -0.10915030522195358 -0.1091439508724305 -0.10913506856466176 -0.10912211556959064 -0.10910216437946094 -0.10906909217587069 -0.10900826165671179 -0.10887706907583998 -0.1085039671980505 -0.10653260100841241 3.850631961339304 -0.10653260100841241 -0.1085039671980505 -0.10887706907583998 -0.10900826165671179 -0.10906909217587069 -0.10910216437946094 -0.10912211556959064 -0.10913506856466176 -0.1091439508724305 -0.10915030522195358 -0.10915500719823426 -0.10915858370804675 -0.10916136723584721 -0.10916357598095727 -0.10916535794894511 -0.10916681640245947 -0.10916802516258085 -0.10916903813593538 -0.10916989542993215 -0.10917062738429992; -0.16729591771134608 -0.16729043636969654 -0.16728323014357843 -0.1672734914982167 -0.16725987851626795 -0.16724002681863756 -0.16720944972109011 -0.16715876342174085 -0.16706553486213654 -0.1668644697468858 -0.16629265561258408 -0.16327134932005555 3.850631961339304 -0.16327134932005555 -0.16629265561258408 -0.1668644697468858 -0.16706553486213654 -0.16715876342174085 -0.16720944972109011 -0.16724002681863756 -0.16725987851626795 -0.1672734914982167 -0.16728323014357843 -0.16729043636969654 -0.16729591771134608 -0.1673001837325973 -0.1673035688446758 -0.16730629988019977 -0.16730853509900565 -0.16731038763892445 -0.1673119401169908 -0.16731325400162603; -0.27776467134093696 -0.27775758856335503 -0.2777484880170925 -0.2777365236845697 -0.2777203548342561 -0.2776977535114566 -0.27766479419159906 -0.2776140277353924 -0.27752987443103777 -0.2773750891843015 -0.27704126536887147 -0.2760918954307231 -0.2710756896463599 3.850631961339304 -0.2710756896463599 -0.2760918954307231 -0.27704126536887147 -0.2773750891843015 -0.27752987443103777 -0.2776140277353924 -0.27766479419159906 -0.2776977535114566 -0.2777203548342561 -0.2777365236845697 -0.2777484880170925 -0.27775758856335503 -0.27776467134093696 -0.27777029156515276 -0.27777482584101437 -0.27777853692371096 -0.2777816126533976 -0.27778419019724876; -0.4883854366270695 -0.48837555495238744 -0.48836310176525083 -0.48834710086668487 -0.48832606475900686 -0.48829763612117216 -0.48825789768535305 -0.4881999474570229 -0.4881106880990808 -0.48796272681762315 -0.48769057798599397 -0.4871036372842485 -0.48543442187193564 -0.47661475351070326 3.850631961339304 -0.47661475351070326 -0.48543442187193564 -0.4871036372842485 -0.48769057798599397 -0.48796272681762315 -0.4881106880990808 -0.4881999474570229 -0.48825789768535305 -0.48829763612117216 -0.48832606475900686 -0.48834710086668487 -0.48836310176525083 -0.48837555495238744 -0.4883854366270695 -0.4883934089493937 -0.48839993390471903 -0.4884053417601722; -0.7883352035001234 -0.788322335057948 -0.7883063846542804 -0.7882862834702027 -0.7882604557841693 -0.7882265005670772 -0.7881806127733806 -0.7881164693854598 -0.7880229296197577 -0.7878788525441498 -0.7876400223617791 -0.7872007361211515 -0.7862533318174195 -0.7835589849084759 -0.7693228078328836 3.850631961339304 -0.7693228078328836 -0.7835589849084759 -0.7862533318174195 -0.7872007361211515 -0.7876400223617791 -0.7878788525441498 -0.7880229296197577 -0.7881164693854598 -0.7881806127733806 -0.7882265005670772 -0.7882604557841693 -0.7882862834702027 -0.7883063846542804 -0.788322335057948 -0.7883352035001234 -0.7883457356897269; -0.7883457356897269 -0.7883352035001234 -0.788322335057948 -0.7883063846542804 -0.7882862834702027 -0.7882604557841693 -0.7882265005670772 -0.7881806127733806 -0.7881164693854598 -0.7880229296197577 -0.7878788525441498 -0.7876400223617791 -0.7872007361211515 -0.7862533318174195 -0.7835589849084759 -0.7693228078328836 3.850631961339304 -0.7693228078328836 -0.7835589849084759 -0.7862533318174195 -0.7872007361211515 -0.7876400223617791 -0.7878788525441498 -0.7880229296197577 -0.7881164693854598 -0.7881806127733806 -0.7882265005670772 -0.7882604557841693 -0.7882862834702027 -0.7883063846542804 -0.788322335057948 -0.7883352035001234; -0.4884053417601722 -0.48839993390471903 -0.4883934089493937 -0.4883854366270695 -0.48837555495238744 -0.48836310176525083 -0.48834710086668487 -0.48832606475900686 -0.48829763612117216 -0.48825789768535305 -0.4881999474570229 -0.4881106880990808 -0.48796272681762315 -0.48769057798599397 -0.4871036372842485 -0.48543442187193564 -0.47661475351070326 3.850631961339304 -0.47661475351070326 -0.48543442187193564 -0.4871036372842485 -0.48769057798599397 -0.48796272681762315 -0.4881106880990808 -0.4881999474570229 -0.48825789768535305 -0.48829763612117216 -0.48832606475900686 -0.48834710086668487 -0.48836310176525083 -0.48837555495238744 -0.4883854366270695; -0.27778419019724876 -0.2777816126533976 -0.27777853692371096 -0.27777482584101437 -0.27777029156515276 -0.27776467134093696 -0.27775758856335503 -0.2777484880170925 -0.2777365236845697 -0.2777203548342561 -0.2776977535114566 -0.27766479419159906 -0.2776140277353924 -0.27752987443103777 -0.2773750891843015 -0.27704126536887147 -0.2760918954307231 -0.2710756896463599 3.850631961339304 -0.2710756896463599 -0.2760918954307231 -0.27704126536887147 -0.2773750891843015 -0.27752987443103777 -0.2776140277353924 -0.27766479419159906 -0.2776977535114566 -0.2777203548342561 -0.2777365236845697 -0.2777484880170925 -0.27775758856335503 -0.27776467134093696; -0.16731325400162603 -0.1673119401169908 -0.16731038763892445 -0.16730853509900565 -0.16730629988019977 -0.1673035688446758 -0.1673001837325973 -0.16729591771134608 -0.16729043636969654 -0.16728323014357843 -0.1672734914982167 -0.16725987851626795 -0.16724002681863756 -0.16720944972109011 -0.16715876342174085 -0.16706553486213654 -0.1668644697468858 -0.16629265561258408 -0.16327134932005555 3.850631961339304 -0.16327134932005555 -0.16629265561258408 -0.1668644697468858 -0.16706553486213654 -0.16715876342174085 -0.16720944972109011 -0.16724002681863756 -0.16725987851626795 -0.1672734914982167 -0.16728323014357843 -0.16729043636969654 -0.16729591771134608; -0.10917062738429992 -0.10916989542993215 -0.10916903813593538 -0.10916802516258085 -0.10916681640245947 -0.10916535794894511 -0.10916357598095727 -0.10916136723584721 -0.10915858370804675 -0.10915500719823426 -0.10915030522195358 -0.1091439508724305 -0.10913506856466176 -0.10912211556959064 -0.10910216437946094 -0.10906909217587069 -0.10900826165671179 -0.10887706907583998 -0.1085039671980505 -0.10653260100841241 3.850631961339304 -0.10653260100841241 -0.1085039671980505 -0.10887706907583998 -0.10900826165671179 -0.10906909217587069 -0.10910216437946094 -0.10912211556959064 -0.10913506856466176 -0.1091439508724305 -0.10915030522195358 -0.10915500719823426; -0.07607987888264461 -0.07607943990865584 -0.0760789298201854 -0.07607833238433041 -0.0760776264577703 -0.07607678409022857 -0.07607576771495288 -0.07607452588709407 -0.07607298664439756 -0.07607104684391182 -0.07606855442566818 -0.07606527768603163 -0.07606084943125026 -0.07605465947872975 -0.07604563272278118 -0.07603172902535865 -0.07600868148238875 -0.07596628956857597 -0.07587486334604669 -0.07561485401413023 -0.07424103727279588 3.850631961339304 -0.07424103727279588 -0.07561485401413023 -0.07587486334604669 -0.07596628956857597 -0.07600868148238875 -0.07603172902535865 -0.07604563272278118 -0.07605465947872975 -0.07606084943125026 -0.07606527768603163; -0.05578085425736284 -0.05578057528841151 -0.05578025343956015 -0.05577987945068494 -0.05577944142007581 -0.05577892384578137 -0.055778306235096754 -0.055777561044667696 -0.055776650555936766 -0.05577552200730629 -0.0557740997759801 -0.05577227237397143 -0.055769869919805086 -0.0557666231927748 -0.0557620848165619 -0.055755466540518425 -0.055745272567391035 -0.05572837446996071 -0.05569729338288772 -0.055630261108861684 -0.05543962634014672 -0.05443236542835309 3.850631961339304 -0.05443236542835309 -0.05543962634014672 -0.055630261108861684 -0.05569729338288772 -0.05572837446996071 -0.055745272567391035 -0.055755466540518425 -0.0557620848165619 -0.0557666231927748; -0.04253712746734494 -0.042536941871599995 -0.04253672913756742 -0.042536483704505045 -0.042536198510897724 -0.04253586448082941 -0.04253546979293927 -0.042534998820055465 -0.04253443055837525 -0.042533736244766425 -0.04253287564468899 -0.04253179109028307 -0.04253039756388314 -0.042528565518558915 -0.042526089654020834 -0.04252262881342005 -0.0425175818985404 -0.04250980825562773 -0.04249692223231913 -0.04247322065205954 -0.042422103687614864 -0.04227673086779176 -0.04150862146134887 3.850631961339304 -0.04150862146134887 -0.04227673086779176 -0.042422103687614864 -0.04247322065205954 -0.04249692223231913 -0.04250980825562773 -0.0425175818985404 -0.04252262881342005; -0.03345773213665993 -0.03345760401974458 -0.033457458039296166 -0.033457290713210755 -0.033457097667683164 -0.033456873348474254 -0.033456610616916634 -0.033456300174911593 -0.033455929730897414 -0.03345548276432002 -0.03345493665151992 -0.03345425974599468 -0.03345340668905334 -0.033452310609998266 -0.033450869613611024 -0.03344892222082138 -0.03344620009449809 -0.033442230440465986 -0.033436116076806556 -0.033425980567172546 -0.0334073380745036 -0.03336713199438233 -0.03325278891269189 -0.03264863198215313 3.850631961339304 -0.03264863198215313 -0.03325278891269189 -0.03336713199438233 -0.0334073380745036 -0.033425980567172546 -0.033436116076806556 -0.033442230440465986; -0.026979001620799647 -0.02697891045931534 -0.026978807151213847 -0.02697868943870928 -0.026978554513979264 -0.026978398850170903 -0.026978217968578966 -0.026978006112881783 -0.02697775578548294 -0.026977457074983148 -0.0269770966599012 -0.026976656297467955 -0.02697611046927254 -0.026975422599970964 -0.02697453876784025 -0.026973376808854362 -0.02697180651307083 -0.02696961150469324 -0.026966410542349193 -0.026961480176208127 -0.026953307326782507 -0.026938274803406468 -0.026905854308464327 -0.0268136528481272 -0.026326486065100668 3.850631961339304 -0.026326486065100668 -0.0268136528481272 -0.026905854308464327 -0.026938274803406468 -0.026953307326782507 -0.026961480176208127; -0.022201997473302787 -0.022201930941557906 -0.02220185592169589 -0.022201770905972647 -0.022201674036379994 -0.022201563002266115 -0.022201434901264756 -0.02220128604769822 -0.022201111704495142 -0.0222009057016304 -0.02220065988267901 -0.02220036328494451 -0.02220000089583651 -0.02219955171539348 -0.02219898564453048 -0.022198258309241877 -0.022197302093977717 -0.022196009844581914 -0.02219420349810919 -0.02219156931816777 -0.022187511953476548 -0.02218078623986069 -0.02216841546904555 -0.022141735549606217 -0.02206585985621001 -0.021664953869183518 3.850631961339304 -0.021664953869183518 -0.02206585985621001 -0.022141735549606217 -0.02216841546904555 -0.02218078623986069; -0.018582599972842707 -0.01858255035900445 -0.018582494673496822 -0.018582431883634534 -0.018582360727471204 -0.018582279649897625 -0.018582186716952505 -0.01858207949942347 -0.01858195491248486 -0.018581808991319212 -0.018581636571760443 -0.01858143082707243 -0.01858118258173575 -0.018580879270564895 -0.01858050331708535 -0.018580029529070053 -0.01857942076651864 -0.01857862043680409 -0.01857753885441481 -0.01857602698484832 -0.018573822238114386 -0.018570426319175555 -0.018564797054866466 -0.01855444301028428 -0.01853211254442635 -0.01846860637137796 -0.01813305747754062 3.850631961339304 -0.01813305747754062 -0.01846860637137796 -0.01853211254442635 -0.01855444301028428; -0.01577680302244032 -0.015776765331761044 -0.015776723209244038 -0.01577667593183466 -0.015776622622775432 -0.01577656221066451 -0.015776493375202632 -0.015776414474442307 -0.015776323445964184 -0.015776217670728388 -0.015776093782575454 -0.015775947397090033 -0.015775772718322492 -0.01577556195618871 -0.01577530444275291 -0.015774985255457747 -0.01577458300591542 -0.015774066161989894 -0.015773386676120695 -0.01577246840464267 -0.015771184816156796 -0.01576931296981193 -0.015766429809422004 -0.015761650522232655 -0.015752859861515294 -0.01573390113022342 -0.015679983917843726 -0.015395100415904259 3.850631961339304 -0.015395100415904259 -0.015679983917843726 -0.01573390113022342; -0.013558915313920457 -0.013558886214479494 -0.013558853822388974 -0.013558817621492357 -0.01355877699038266 -0.01355873117555774 -0.013558679256234364 -0.013558620097722098 -0.013558552288899867 -0.013558474057285047 -0.013558383152024681 -0.013558276680176963 -0.013558150873691489 -0.01355800075141831 -0.013557819618410172 -0.01355759830643906 -0.013557323990773838 -0.013556978289825014 -0.013556534104271906 -0.013555950141122227 -0.013555160961054073 -0.013554057820563476 -0.013552449120019716 -0.013549971276846446 -0.013545863866042467 -0.013538309004119726 -0.013522015507903046 -0.01347567802453469 -0.013230843695191442 3.850631961339304 -0.013230843695191442 -0.01347567802453469; -0.011776092595895876 -0.011776069807563214 -0.01177604453437283 -0.011776016401479426 -0.011775984960595271 -0.01177594967202144 -0.011775909881332878 -0.011775864788819038 -0.01177581340898857 -0.011775754516267018 -0.011775686571233367 -0.011775607618996617 -0.011775515147004404 -0.011775405882662762 -0.011775275499787165 -0.011775118183740938 -0.011774925971815375 -0.01177468772558784 -0.011774387480442 -0.011774001700314323 -0.011773494521778546 -0.01177280911005068 -0.011771851020179622 -0.011770453845740205 -0.011768301811192823 -0.0117647344789073 -0.0117581729967143 -0.011744021912765874 -0.011703777289488942 -0.011491135932353687 3.850631961339304 -0.011491135932353687; -0.010321943346171831 -0.010321925273428461 -0.01032190529910634 -0.010321883146768419 -0.010321858487857062 -0.010321830929441219 -0.010321799998466523 -0.010321765121319408 -0.010321725597041346 -0.010321680561834096 -0.010321628941462902 -0.0103215693866017 -0.010321500183758627 -0.010321419130643113 -0.010321323358776485 -0.010321209076191842 -0.010321071186271208 -0.010320902709578604 -0.010320693883116239 -0.010320430713653716 -0.010320092571471375 -0.010319648021727567 -0.010319047247864846 -0.010318207467439057 -0.01031698282267339 -0.010315096531477644 -0.010311969710167707 -0.010306218470668904 -0.010293814829149936 -0.010258539801313745 -0.010072156399475053 3.850631961339304]

using IterativeSolvers
powm(kernel)[1]

This code block return

4.4819149212347265 + 4.8907651174712186e-5im

But this is not the largest absolute eigenvalue, we can check this by

using LinearAlgebra
maximum(eigvals(kernel))

which gives

4.620407037613936

Julia 1.8, IterativeSolvers v0.9.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant