This project is read-only.
1
Vote

Sparse matrices fail at runtime

description

The following example compiles but does not run
module Main;
type sparse_matrix = array {sparse} *,* of integer;
var
      a, b : sparse_matrix;
      i, j, s : array {math} 3 of integer;
begin
      i := [1, 5, 0];
      j := [2, 4, 1];
      s := [35, 72, 11];     
      a := new sparse_matrix(i, j, s);
      b := -a; (* element-wise negation *)
end Main.
The program compiles, but System.EntryPointNotFoundException happens at runtime.

comments