context.addFooter(footer)
val firstCol = new FunctionCall(OnetepFunctions.sparse_first_elem_on_node,
- Seq(OnetepVariables.pub_first_atom_on_node.at(OnetepVariables.pub_my_node_id),
+ Seq(OnetepVariables.pub_my_node_id,
mat,
new CharLiteral('C')))
val lastCol = new FunctionCall(OnetepFunctions.sparse_first_elem_on_node,
- Seq(OnetepVariables.pub_first_atom_on_node.at((OnetepVariables.pub_my_node_id: Expression[IntType])+1),
+ Seq((OnetepVariables.pub_my_node_id: Expression[IntType])+1,
mat,
new CharLiteral('C'))) - 1
val firstRow = new FunctionCall(OnetepFunctions.sparse_first_elem_on_node,
- Seq(OnetepVariables.pub_first_atom_on_node.at(OnetepVariables.pub_my_node_id),
+ Seq(OnetepVariables.pub_my_node_id,
mat,
new CharLiteral('R')))
val lastRow = new FunctionCall(OnetepFunctions.sparse_first_elem_on_node,
- Seq(OnetepVariables.pub_first_atom_on_node.at((OnetepVariables.pub_my_node_id: Expression[IntType])+1),
+ Seq((OnetepVariables.pub_my_node_id: Expression[IntType])+1,
mat,
new CharLiteral('R'))) - 1
val colAtom = context.addExpression("col_atom", new FunctionCall(OnetepFunctions.sparse_atom_of_elem,
Seq(col, mat, new CharLiteral('C'))))
val localColAtom = context.addExpression("local_col_atom",
- colAtom - OnetepVariables.pub_first_atom_on_node.at(OnetepVariables.pub_my_node_id))
+ colAtom - OnetepVariables.pub_first_atom_on_node.at(OnetepVariables.pub_my_node_id) + 1)
val row = context.addIteration("row", firstRow, lastRow)
val rowAtom = context.addExpression("row_atom", new FunctionCall(OnetepFunctions.sparse_atom_of_elem,