This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// See: | |
// https://github.com/opencollab/arpack-ng/issues/410 | |
// https://github.com/opencollab/arpack-ng/issues/401 | |
// | |
// Build ARPACK with ISO_C_BINDING to make arpack.h available, then compile this file as: | |
// | |
// cc prog.c -o prog -larpack | |
#include <stdbool.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
formatJSON[json_] := formatRawJSON@rulesToAssociations[json] | |
rulesToAssociations[rules_] := | |
Replace[rules, r : {__Rule} :> Association[r], {0, Infinity}] | |
basicTypeQ[_String | True | False | Null | (_?NumericQ)] = True; | |
basicTypeQ[_] = False; | |
formatRawJSON[json_] := |