Skip to content

infinite nullspace on standalone page #12

@jo-pol

Description

@jo-pol

I tried a nullspace calculation which seem to run forever in a standalone web-page. The same two JavaScript lines run quickly on https://mlweb.loria.fr/lalolab/index.html

I tried to import the script from the head section as shown below, tried also in the body, in both cases with and without the type attribute. Tried firefox and chrome. What am I missing?


<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>test</title>
    <script type="application/x-javascript" src="http://mlweb.loria.fr/lalolib.js "></script>
</head>
<body>
<script>
    const data = [[0,0,0,0,0,0,0,1,0,0,0,0,1,-1,0,-1,0,-1,0,0],[0,0,0,0,0,0,1,-1,0,0,-1,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,-1],[0,0,0,-1,0,0,0,0,0,0,0,0,0,0,0,0,-1,1,0,0],[0,0,1,0,0,0,0,0,1,-1,0,0,-1,0,0,0,0,0,0,0],[1,0,0,0,1,-1,0,0,0,0,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,1,0,0,0,1,1,-1,0,0,0,0,0,0,-1,0],[0,-1,0,0,0,0,0,0,0,0,0,1,0,0,-1,1,0,0,0,0],[0,0,-1,1,-1,0,-1,0,0,0,0,0,0,0,1,0,0,0,0,0],[-1,1,0,0,0,0,0,0,-1,0,0,0,0,0,0,0,1,0,0,1],[0,0,0,0,0,0,0,0,0,1,0,0,-1,-1,0,0,0,0,1,0],[0,0,1,0,0,0,-1,-1,0,0,0,0,1,0,0,0,0,0,0,0],[0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,-1,-1],[0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,-1,-1,0,1],[1,0,0,0,0,1,0,0,-1,-1,0,0,0,0,0,0,0,0,0,0],[0,0,0,0,-1,-1,1,0,0,0,1,0,0,0,0,0,0,0,0,0],[0,0,0,0,0,0,0,1,0,0,-1,-1,0,0,0,1,0,0,0,0],[0,0,0,1,0,0,0,0,0,0,0,0,0,0,-1,-1,0,1,0,0],[0,0,-1,-1,0,0,0,0,1,0,0,0,0,0,0,0,1,0,0,0],[-1,-1,0,0,1,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0]];
    console.log(nullspace(array2mat(data)));
</script>
</body>
</html>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions