numbl 0.1.4 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +2 -1
- package/dist-cli/cli.js +2215 -250
- package/dist-lib/graphics/types.d.ts +22 -0
- package/dist-lib/lib.js +2154 -189
- package/dist-lib/numbl-core/executeCode.d.ts +9 -0
- package/dist-lib/numbl-core/functionResolve.d.ts +4 -0
- package/dist-lib/numbl-core/helpers/gmres.d.ts +51 -0
- package/dist-lib/numbl-core/interpreter/interpreter.d.ts +3 -0
- package/dist-lib/numbl-core/interpreter/interpreterFunctions.d.ts +3 -0
- package/dist-lib/numbl-core/interpreter/interpreterSpecialBuiltins.d.ts +8 -3
- package/dist-lib/numbl-core/interpreter/jit/jitHelpers.d.ts +9 -0
- package/dist-lib/numbl-core/jsUserFunctions.d.ts +25 -10
- package/dist-lib/numbl-core/lowering/loweringContext.d.ts +12 -1
- package/dist-lib/numbl-core/native/lapack-bridge.d.ts +33 -1
- package/dist-lib/numbl-core/runtime/error.d.ts +2 -0
- package/dist-lib/numbl-core/runtime/plotUtils.d.ts +11 -2
- package/dist-lib/numbl-core/runtime/runtime.d.ts +10 -0
- package/dist-lib/numbl-core/runtime/runtimePlot.d.ts +6 -0
- package/dist-lib/numbl-core/version.d.ts +1 -1
- package/dist-plot-viewer/assets/index-vtrJ8bml.js +4426 -0
- package/dist-plot-viewer/index.html +1 -1
- package/native/lapack_gmres.cpp +612 -0
- package/native/numbl_addon.cpp +5 -1
- package/native/numbl_addon_common.h +26 -0
- package/package.json +1 -1
- package/dist-plot-viewer/assets/index-BjKyNJgj.js +0 -4426
|
@@ -60,6 +60,20 @@ export interface ImagescTrace {
|
|
|
60
60
|
rows: number;
|
|
61
61
|
cols: number;
|
|
62
62
|
}
|
|
63
|
+
export interface PcolorTrace {
|
|
64
|
+
/** X coordinates: flat array of length rows*cols (column-major) */
|
|
65
|
+
x: number[];
|
|
66
|
+
/** Y coordinates: flat array of length rows*cols (column-major) */
|
|
67
|
+
y: number[];
|
|
68
|
+
/** Color values: flat array of length rows*cols (column-major) */
|
|
69
|
+
c: number[];
|
|
70
|
+
/** Number of rows in the grid */
|
|
71
|
+
rows: number;
|
|
72
|
+
/** Number of columns in the grid */
|
|
73
|
+
cols: number;
|
|
74
|
+
edgeColor?: [number, number, number] | "none";
|
|
75
|
+
faceAlpha?: number;
|
|
76
|
+
}
|
|
63
77
|
export interface ContourTrace {
|
|
64
78
|
/** X coordinates: flat array (column-major) */
|
|
65
79
|
x: number[];
|
|
@@ -171,6 +185,9 @@ export type PlotInstruction = {
|
|
|
171
185
|
} | {
|
|
172
186
|
type: "imagesc";
|
|
173
187
|
trace: ImagescTrace;
|
|
188
|
+
} | {
|
|
189
|
+
type: "pcolor";
|
|
190
|
+
trace: PcolorTrace;
|
|
174
191
|
} | {
|
|
175
192
|
type: "contour";
|
|
176
193
|
trace: ContourTrace;
|
|
@@ -246,9 +263,11 @@ export type PlotInstruction = {
|
|
|
246
263
|
} | {
|
|
247
264
|
type: "set_colorbar";
|
|
248
265
|
value: string;
|
|
266
|
+
location?: string;
|
|
249
267
|
} | {
|
|
250
268
|
type: "set_colormap";
|
|
251
269
|
name: string;
|
|
270
|
+
data?: number[][];
|
|
252
271
|
} | {
|
|
253
272
|
type: "set_axis";
|
|
254
273
|
value: string;
|
|
@@ -259,4 +278,7 @@ export type PlotInstruction = {
|
|
|
259
278
|
type: "set_view";
|
|
260
279
|
az: number;
|
|
261
280
|
el: number;
|
|
281
|
+
} | {
|
|
282
|
+
type: "set_caxis";
|
|
283
|
+
limits: [number, number];
|
|
262
284
|
};
|