Algorithms: the algorithm module

astra.algorithm.clear()[source]

Clear all matrix objects.

astra.algorithm.create(config)[source]

Create algorithm object.

Parameters:config (dict) – Algorithm options.
Returns:int – the ID of the constructed object.
astra.algorithm.delete(ids)[source]

Delete a matrix object.

Parameters:ids (int or list) – ID or list of ID’s to delete.
astra.algorithm.get_res_norm(i)[source]

Get residual norm of algorithm.

Parameters:i (int) – ID of object.
Returns:float – The residual norm.
astra.algorithm.info()[source]

Print info on matrix objects in memory.

astra.algorithm.run(i, iterations=1)[source]

Run an algorithm.

Parameters:
  • i (int) – ID of object.
  • iterations (int) – Number of iterations to run.

Previous topic

Projector object: the projector module

Next topic

Sparse matrices: the matrix module

This Page