Comparing version 1.1.25 to 1.1.26
@@ -5,2 +5,7 @@ # Release notes | ||
## 1.1.26 | ||
- A fix for a major bug in element wise operations. Assymetric operations produce incorrect results. This shouldn't even be called a bug. This was like finding a lizard in your bathroom, coming up the drain. The fix was simple, but the lizard is old, it certainly comes from the first version. It is necessary to extend the tests. | ||
- `horzcat` and `vertcat` functions defined as function mappings. | ||
- Start to extend MultiArray class to support multidimensional arrays. | ||
## 1.1.25 | ||
@@ -7,0 +12,0 @@ - More bug fix in indexing (some `end` in ranges stop to work after 1.1.23. The problem is parent link absent in some constructions). |
@@ -69,3 +69,3 @@ import { ComplexDecimal } from './complex-decimal'; | ||
/** | ||
* Remove tail of ones in array dimension | ||
* Remove tail of ones in array dimension in place. | ||
* @param dimension | ||
@@ -76,5 +76,5 @@ */ | ||
* Converts linear index to subscripts. | ||
* @param dimension Dimensions of tensor ([line, page, block, ...]) | ||
* @param index Zero-based linear index | ||
* @returns One-based subscript | ||
* @param dimension Dimensions of tensor ([line, page, block, ...]). | ||
* @param index Zero-based linear index. | ||
* @returns One-based subscript. | ||
*/ | ||
@@ -84,5 +84,5 @@ static linearIndexToSubscript(dimension: number[], index: number): number[]; | ||
* Converts subscripts to linear index. | ||
* @param dimension Dimensions of tensor ([line, page, block, ...]) | ||
* @param subscript One-based subscript | ||
* @returns Zero-based linear index | ||
* @param dimension Dimensions of tensor ([line, page, block, ...]). | ||
* @param subscript One-based subscript. | ||
* @returns Zero-based linear index. | ||
*/ | ||
@@ -136,3 +136,2 @@ static subscriptToLinearIndex(dimension: number[], subscript: number[]): number; | ||
static unparseMLTensor(M: MultiArray, that: Evaluator): string; | ||
static link(M: MultiArray): void; | ||
/** | ||
@@ -143,2 +142,3 @@ * Evaluate MultiArray object. Calls `that.Evaluator` for each element of | ||
* @param that Evaluator reference. | ||
* @param local Local context (function). | ||
* @param fname Function name (context). | ||
@@ -168,2 +168,3 @@ * @returns MultiArray object evaluated. | ||
static matrixToNumber(value: ComplexDecimal | MultiArray): MultiArray | ComplexDecimal; | ||
static matrixToNumberTensor(value: ComplexDecimal | MultiArray): MultiArray | ComplexDecimal; | ||
/** | ||
@@ -217,5 +218,5 @@ * Copy of MultiArray. | ||
* number. | ||
* @param k | ||
* @param input | ||
* @returns | ||
* @param k Index as ComplexDecimal. | ||
* @param input Optional id reference of object. | ||
* @returns k as number, if real part is integer greater than 1 and imaginary part is 0. | ||
*/ | ||
@@ -227,2 +228,4 @@ static testIndex(k: ComplexDecimal, input?: string): number; | ||
* @param k | ||
* @param bound | ||
* @param dim | ||
* @param input | ||
@@ -245,2 +248,3 @@ * @returns | ||
static firstNonSingleDimension(M: MultiArray): number; | ||
static firstNonSingleDimensionTensor(M: MultiArray): number; | ||
/** | ||
@@ -247,0 +251,0 @@ * Converts a ComplexDecimal array or a single line MultiArray to an array |
{ | ||
"name": "mathjslab", | ||
"version": "1.1.25", | ||
"version": "1.1.26", | ||
"description": "MathJSLab - An interpreter with language syntax like MATLAB®/Octave. ISBN 978-65-00-82338-7", | ||
@@ -70,3 +70,3 @@ "main": "lib/mathjslab.js", | ||
"jison": "^0.4.18", | ||
"lint-staged": "^15.0.2", | ||
"lint-staged": "^15.1.0", | ||
"prettier": "^3.0.3", | ||
@@ -73,0 +73,0 @@ "rimraf": "^5.0.5", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
499808
7493