const Matrix /* or null */ *rawGBGetMatrix(Computation *C) /* Get the minimal, auto-reduced GB of a GB computation. Each call to this will produce a different raw matrix */ { try { clear_emit_size(); GBComputation *G = C->cast_to_GBComputation(); if (G != 0) return G->get_gb(); ERROR("computation type unknown or not implemented"); return 0; } catch (exc::engine_error e) { ERROR(e.what()); return NULL; } }
//////////////////////////////// // Results of the computation // //////////////////////////////// virtual const Matrix /* or null */ *get_gb() { return G->get_gb(); }