Linear Algebra
The Linear Algebra toolbox works with vectors (lists of numbers) and matrices. A vector supports element-by-element arithmetic, math functions such as Sine, Power and Sqrt, and summaries such as Mean, Sum and Standard Deviation. A matrix is a grid of numbers you can make, read by row or column, and print.
Use it when you calculate with many numbers at once: a signal, a series of measurements, or the x and y values of a chart.
- Included in: Divooka Explore and Divooka Compute Standard. In Compute, start a document from the Data Analytics workload, or add the Numerics reference with Add reference (
Ctrl+Shift+L). The Numerics reference holds Linear Algebra and Statistics. - Maturity: Usable · Support: Tier 2 (proposed) · what these mean
- Open it: node library (
Ctrl+Shift+Space) → Linear Algebra, or search for a node withCtrl+Space. - Reference: Linear Algebra node reference
New to graphs? Start with Your first program.
Main ideas
One node, every element. Sine on a vector of 50 numbers returns a vector of 50 sines. Arithmetic between two vectors works element by element.
Vectors feed charts. The Charts in Plotting take vectors for their X and Y.
Example: summarize eight numbers
- Make Vector with the values
2, 4, 4, 4, 5, 5, 7, 9. - Mean returns
5. Sum returns40. - Standard Deviation returns
2.138. Std returns2.
The two standard deviations differ because they divide by different counts: Standard Deviation by n − 1 (the sample standard deviation), Std by n (the population standard deviation).
For a chart example, see Plotting, where Sine turns 50 x values into a sine wave.
Tips and limits
- Check the divisor. Standard Deviation divides by n − 1 (sample). Std, Population STD, Variance and Population Variance divide by n (population). Pick the one your method expects.
- Save To CSV File writes a vector to a CSV file in one step.
- For tables, use Data Analytics. Vectors have no column names or missing values; Data Analytics tables do.
What is in the toolbox
| Category | Some of its nodes |
|---|---|
| Vector | Make Vector, Contains, Copy, Copy To and 23 more |
| Vector Routines | Absolute Value, Apply, Arccosine, Arcsine and 27 more |
| Matrix | Make Matrix, Get Data, Get Item, Get Data Column and 4 more |
See also
- Linear Algebra node reference
- Math in Divooka
- Toolboxes - every other toolbox.