30 Commits

Author SHA1 Message Date
Orel Ben Neriah
b81420fad6
chore: update matrix documentation to align with v15 (#3591)
Resolves #3565.

---------
Co-authored-by: Glen Whitney <glen@studioinfinity.org>
2025-11-11 15:07:16 -08:00
Jos de Jong
302ed812e1
fix: #3529 change function size to always return an Array (#3535) 2025-10-09 10:33:15 +02:00
Jos de Jong
a8ec24d595 docs: some updates in the description to migrate matrix index behavior to v15 (see #3485) 2025-07-16 10:58:25 +02:00
David Contreras
10602fdbfd
feat: matrix subset according to type of input (#3485) 2025-07-16 10:40:13 +02:00
David Contreras
bcf0da46f0
feat: support multiple inputs in function map (#3228) 2024-08-22 13:35:21 +02:00
Jos de Jong
085b85532c docs: fix broken example in the documentation about matrices (see #3159) 2024-02-16 15:48:12 +01:00
David Contreras
49c793ba5a
feat: Indexing with an array of booleans (#2994)
* Included math to syntax when missing

* Included solveODE

* renamed initialStep as firstStep

* Included tests for solveODE

* Test the full state instead of the final state

* Fixed issue with tolerance

* Indexing with an array of booleans

* Indexing with booleans and with empty

* Changed index embedded docs

* removed solveODE

* typos on tests

* included config.predictable

* Throws an error if the size doesn't match

* Included config predictable to get subset

* Can do replacement by broadcasting

* DenseMatrix set can broadcast first

* Added tests for broadcasted subset in the parser

* Faster cloning of deep arrays

* Included docs and better test coverage

* Test coverage for `subset`

* Removed config predictable from subset

* Removed config from index and sparseMatrix

* Redaction and typos

* Cleanup unnecesary changes

* fixed issue when there is no need to broadcast

* Inline ifs

* Included specific broadcasting test

* Reduced repetition

---------

Co-authored-by: David Contreras <david.contreras@guentner.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-07-28 09:30:04 +02:00
Jos de Jong
6fb485de5f fix #2906: improve description of the behavior of subset for scalar values in the docs 2023-02-27 11:28:22 +01:00
David Contreras
f8013cc99a
Broadcasting (#2895)
* broadcasting

* Simplified broadcasting

* Updated for broadcasting

* Changed to camel case

* Camel case and auto formating

* Added comments

* Skip if matrices have the same size

* Fixed issue with undefined variable

missing dot  in `A._size`

* Implemented broadcasting in all functions

* Added helper functions

* Added function to check for broadcasting rules

* Tests for broadcasted arithmetic

* Fixed issue with matrix the size of a vector

* Documented and updated broadcasting

* Included broadcast.test

---------

Co-authored-by: David Contreras <david.contreras@guentner.com>
Co-authored-by: Jos de Jong <wjosdejong@gmail.com>
2023-02-23 19:24:55 +01:00
Jos de Jong
0230a17af5 Fix: split a long sentence in the docs in two 2023-02-08 11:52:29 +01:00
Jos de Jong
edb8b5ffd1 Fix: typo in the docs about calculations with matrices 2023-02-08 11:49:35 +01:00
Jos de Jong
5278a05328 docs: fix description and examples of element-wise matrix calculations (see #2440) 2023-01-13 14:33:10 +01:00
Jos de Jong
f9b944acfe Fix #2613: describe matrix methods get and set in the docs and example 2022-07-04 09:51:09 +02:00
Glen Whitney
82074e85e0
fix: Type declarations for rounding functions (#2539)
This is a sequel to #2531. Uniformizes the signatures of ceil, fix, floor,
  and round, and updates the TypeScript declarations to match. Adds the
  optional "number of places" argument to the chain versions of ceil, fix,
  and floor. Adds TypeScript tests for all rounding functions.

  Also corrects the TypeScript declaration for `bignumber()` and introduces
  a couple more common abbreviations for TypeScript types.

  Fixes the number-only implementations of floor, ceil, fix, and nthRoot
  to match the full implementation behavior on numbers, and tests this for
  floor.

  Includes some minor documentation updates and additional unit tests for
  the rounding functions.

  Reverts inclusion in AUTHORS of incorrect email for one contributor,
  that occurred in #2531.

  Resolves #2526.
  Resolves #2529.
2022-04-25 12:07:02 +02:00
Jos de Jong
06052ecc86 Fix #2142: clarify the meaning of matrix dimensions in the docs 2021-04-05 14:44:50 +02:00
Jos de Jong
9e462268e5 Fix #1940: error in the documentation about resizing matrices 2020-08-10 21:49:40 +02:00
jos
b3b96749bf Refactored var into const/let, and removed a lot of semicolons 2018-06-13 12:21:14 +02:00
jos
cf5c1c1af8 Fixes #1054: renamed eye to identity 2018-06-06 10:52:08 +02:00
jos
99ab11b234 Dropped constant uninitialized 2018-02-04 13:09:09 +01:00
jos
15aca5e4d0 Changed casing of the values of config options number and matrix to match the actual name of the classes. 2016-03-04 19:41:54 +01:00
jos
67fcde902e Moved the class API's under reference/classes (similar to functions reference) 2016-03-04 16:58:21 +01:00
jos
09d4a88fa1 Removed the matrix functions list from the matrices.md page 2016-03-04 16:18:47 +01:00
hgupta9
45a37ba731 class-wise API and new units 2016-03-02 18:30:55 +05:30
jos
ddb707e9b8 Updated some more docs, examples, history 2015-07-28 09:51:31 +02:00
Devan Patel
3e31846256 Update matrices.md 2015-05-15 15:16:27 -04:00
jos
1990edc90f Added docs and and example on sparse matrices 2015-03-28 15:55:59 +01:00
jos
7f6b13a797 Changed the default value of new entries in resized matrices to zero. 2014-08-12 22:35:56 +02:00
jos
366b11e6c6 Fixed a broken link 2014-08-12 18:12:23 +02:00
josdejong
f2f1ae1f72 Renamed and flattened configuration settings 2013-12-07 11:39:45 +01:00
josdejong
335dccfa5b Moved docs on data types in a separate directory 2013-11-27 12:14:47 +01:00