Skip to content

ArrayND The N Dimensional Array

Alex Cole edited this page Jan 14, 2021 · 1 revision

ArrayND

The n-dimensional array is the main component of this numerical package. This is a custom array that holds a flat array but may be any size needed or any number of dimensions held with shape: Array<Int>. This class can be indexed as a regular array or arrayList with the get and set operator. The more unique thing about these arrays is their ability for use with math functions. Currently it does not accept other types and defaults to an internally held Array.

Common ArrayND methods

plus() minus() time() div() equals() sum() // returns the sum of every element in the array

Notes

Most operations are held with only doubles and have been designed to work with just doubles in any operation. Other dataTypes are coming and will be implemented and tested.

Late Goals

  1. Include a typing system along with a default type and primitive specific arrays.
  2. Include complex numbers.

#Polynomial Class

The polynomial class operates in the same way that the numpy polynomial class works with accepting values as a parameter and calculating what that value of the given polynomial. This is mainly a convenience class.

Clone this wiki locally