This site is no longer active and is available for archival purposes only. Registration and login is disabled.

Matrices are now an integral part of PPL.


Matrices are now an integral part of PPL.

Postby kornalius » Sep 8, 2004 @ 9:08pm

Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Sep 9, 2004 @ 1:49am

Sorry guys for the lack of pre-release yesterday and today. I want to finish up the matrix routines before I make a build available.

Here is a list of the new matrix functions:

array(matrix$, array$) // convert a matrix to an array.

matrix(array$, matrix$) // convert an array to a matrix format.

mcount(matrix) // return number of elements in matrix

mtype(matrix[x]) // return ET_STRING or ET_MATRIX

madd(matrix, elements) // add elements to matrix

mdel(matrix, index, count) // delete elements from matrix

mins(matrix, index, elements); // insert elements into a matrix

mmid(matrix, index, count) // create new matrix from elements of another matrix

mpos(matrix, element) // find position of an element

mset(matrix, count) // set the number of elements in a matrix

Matrices will have it's own variable type, just like arrays, structures...
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Postby kornalius » Sep 9, 2004 @ 7:12pm

Here are some more wicked matrix stuff you will be able to do.

a$ = [10, 20] + 5;
a$ = [10, 20] + [10, 20, 30, 40, 50];
a$ = ["ppl", "rulez"] + [" is cool", " so much"];
a$ = [10, 20] == [10, 15];
a$ = a$ + [20,29];

Strings are an integral part of matrices as well.
Regards,
Kornalius
President
ArianeSoft Inc.
http://www.arianesoft.ca
User avatar
kornalius
pm Member
 
Posts: 1704
Joined: Dec 9, 2003 @ 6:04pm
Location: Montreal, Québec, Canada


Return to Pocket Programming Language (PPL)


Sort


Forum Description

Discuss this new development tool.

Moderator:

kornalius

Forum permissions

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum