Skip to content

how to build matrices for the lib #281

@nibblelab

Description

@nibblelab

Hi,

I'm trying to build new matrices to use in amgcl. In the code, the lib reads matrices in CRS/CSR format in a binary file using the method amgcl::io::read_crs while the RHS vector, also in a binary file, is read with amgcl::io::read_dense.

How are those binary files organized?

For example, the matrix file could have an integer number describing the number of columns, followed by an integer number describing the number of rows, followed by a sequence of doubles describing the values of size non-zeros (a parameter), followed by a sequence of integers describing the column index, followed by a sequence of integers describing the row index. With that organization, the file would be structured like: int|int|double ..... double|double .... double|double

Are there any tutorials or instructions regarding how to create the matrices and RHS vectors for use in amgcl::io::read_crs and amgcl::io::read_dense?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions