dart_constructs 1.1.3 dart_constructs: ^1.1.3 copied to clipboard
As of now, the constructs project has one data structure, that is the nth dimensional matrix construct. Say I want to make a 3x3x3x3 integer matrix initialized with a value of 5, I would simply type N [...]
Constructs Project
The Goal
The goal of the constructs project is to use the existing Dart data structures to build more complex data structures (and thus constructs) that are not in the Dart language. This will hopefully help out Dart Devs who need extra data structures with it's own methods already implemented.
So Far
As of writing, this project's sole focus is on the nth dimensional matrix, the NMatrix class. However other data structures are being planned out for implementation!
Examples:
1.To make a one dimensional matrix (aka a list) with 5 rows:
NMatrix<int> oneDim = new NMatrix.dimensional([5]);
2.To instantiate it with an initial value other than the default null value:
NMatrix<int> oneDim = new NMatrix.dimensional([5], 1);
3.To travel to the 5th dimension we simply do:
NMatrix<int> fiveDim = new NMatrix.dimensional([5,2,5,2,5], 1);
Author
Kyle Ferguson is the sole author of the dart constructs project.
Contact
If you would like to contact me to get in touch, voice a concern, etc. shoot me an email at hanbrolo117@gmail.com.
Special Thanks
Thank you to cups of delicious coffee ☕ and bowls of cereal.
***************
******* *******
*** ***
** ***
***** ***********
***************************************
****************************************
******************************* *****
******************************* *****
******************************* *****
******************************* *****
******************************* *****
******************************* *****
******************************* *****
******************************* *****
****************************************
***************************************
*************************************
*****************************
**************************
********************