@danielsimonjr/mathts-core 0.1.1

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/README.md ADDED
@@ -0,0 +1,44 @@
1
+ # @danielsimonjr/mathts-core
2
+
3
+ Core types, utilities, and configuration for MathTS.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install @danielsimonjr/mathts-core
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```typescript
14
+ import { createConfig, isNumeric, isMatrix, VERSION } from '@danielsimonjr/mathts-core';
15
+
16
+ // Create custom configuration
17
+ const config = createConfig({
18
+ backend: 'wasm',
19
+ autoBackend: true,
20
+ });
21
+
22
+ // Type guards
23
+ console.log(isNumeric(42)); // true
24
+ console.log(isMatrix([[1, 2], [3, 4]])); // true
25
+ ```
26
+
27
+ ## API
28
+
29
+ ### Types
30
+
31
+ - `BackendType` - Available backends: `'js' | 'wasm' | 'gpu'`
32
+ - `NumericType` - Numeric precision types
33
+ - `MathTSConfig` - Configuration interface
34
+
35
+ ### Functions
36
+
37
+ - `createConfig(overrides?)` - Create configuration with defaults
38
+ - `isNumeric(value)` - Type guard for numbers
39
+ - `isComplex(value)` - Type guard for complex numbers
40
+ - `isMatrix(value)` - Type guard for matrices
41
+
42
+ ## License
43
+
44
+ MIT