CRAM Solver (via Transmutagen) – pyne.cram

pyne.cram.asflat()

Returns a flat version of the matrix. Does nothing if the matrix is already flat.

pyne.cram.csr_from_flat()

Converts a flatten matrix into a CSR sparse matrix.

pyne.cram.diag_add()

Returns a flat matrix which represents A + theta*I.

pyne.cram.dot()

Takes the dot product of Ax and returns y.

pyne.cram.expmI14()

Computes exp(-A)*I

pyne.cram.flatten_sparse_matrix()

Flattens a sparse matrix to a solvable form.

pyne.cram.ones()

Returns a CSR matrix of ones with the given sparsity pattern.

pyne.cram.scalar_times_vector()

Returns alpha*v, there alpha is a scalar and v is a vector

pyne.cram.solve()

Solves Ax = b for x.