init_matrix_indices.hsf 1.0 KB

12345678910111213141516171819202122232425262728
  1. [Main]
  2. Name=init_matrix_indices
  3. Type=Function
  4. Subtype=ROM Call
  5. Header Files=estack.h
  6. Definition=ESI *init_matrix_indices (ESI *indices, CESI expr);
  7. MinAMS=1.01
  8. [ROM Call]
  9. Index=$2BB
  10. [Description]
  11. Computes and stores the indices of the elements of a matrix.
  12. [Explanation]
  13. init_matrix_indices stores the index of the first element of the first row to <I>indices</I>, then
  14. it repeatedly calls <A HREF="$$LINK(estack.h/next_expression_index)">next_expression_index</A> and
  15. stores the result to <I>indices</I> until the <A HREF="$$LINK(estack.h/Tags)">END_TAG</A>
  16. for the whole matrix is reached.<BR>
  17. <I>expr</I> is assumed to point to a double <A HREF="$$LINK(estack.h/Tags)">LIST_TAG</A>.
  18. init_matrix_indices returns <I>indices</I>.
  19. <BR><BR>
  20. Here is an example (called "Matrix elements") which displays the matrix elements as returned by
  21. init_matrix_indices: $$EXAMPLE(Matrix elements.c)
  22. [References]
  23. Out=estack.h/next_expression_index
  24. In=unknown.h/get_matrix_indices, unknown.h/push_lu_fact, unknown.h/push_symbolic_qr_fact