Coder Social home page Coder Social logo

matrix is singular error about reedsolomon HOT 9 CLOSED

klauspost avatar klauspost commented on August 26, 2024
matrix is singular error

from reedsolomon.

Comments (9)

hedwigz avatar hedwigz commented on August 26, 2024

Also happens for random 40kb buffer and some other files. For fewer pairity/shards (e.g 50/20) error doesn't occur. Is the likelihood of singularity rises when the size of the matrix rises?

from reedsolomon.

xiaost avatar xiaost commented on August 26, 2024

it seems the rows/cols idx exceeds byte len when generating Vandermonde matrix within Galois Field

https://github.com/klauspost/reedsolomon/blob/master/matrix.go#L271

from reedsolomon.

klauspost avatar klauspost commented on August 26, 2024

It would seem that to be safe from this the number of data+parity shards should not exceed 255.

I did some tests, which only seemed to fail if the number of data shards where >255, but it seems like there is another limitation that kicks in when reconstructing.

from reedsolomon.

hedwigz avatar hedwigz commented on August 26, 2024

Hi,
Thanks for the answer.
I think I missed the point of how to avoid this or that maybe it's a bug?
Are you saying that shards+parity cannot excced 255? Cause I didn't infer
that from the documentation. (And also there's no error for those
dimensions)
Sorry for my lack of understanding.
On Apr 10, 2016 21:30, "Klaus Post" [email protected] wrote:

It would seem that to be safe from this the number of data+parity shards
should not exceed 255.

I did some tests, which only seemed to fail if the number of data shards
where >255, but it seems like there is another limitation that kicks in
when reconstructing.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#16 (comment)

from reedsolomon.

klauspost avatar klauspost commented on August 26, 2024

Are you saying that shards+parity cannot excced 255?

That would be my recommendation. I will do some more tests, but for now, I would stick to that.

from reedsolomon.

hedwigz avatar hedwigz commented on August 26, 2024

Thank you very much
On Apr 10, 2016 21:50, "Klaus Post" [email protected] wrote:

Are you saying that shards+parity cannot excced 255?

That would be my recommendation. I will do some more tests, but for now, I
would stick to that.


You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub
#16 (comment)

from reedsolomon.

harshavardhana avatar harshavardhana commented on August 26, 2024

AFAIK - (k + m) cannot be bigger than Galois field GF(2^8) - 1

from reedsolomon.

hedwigz avatar hedwigz commented on August 26, 2024

ok so shouldn't we add a check at the constructor?

from reedsolomon.

klauspost avatar klauspost commented on August 26, 2024

That would make sense, yes - as well as updating the documentation

from reedsolomon.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.