Transpose Matrix (Source Sample)

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Transpose Matrix (Source Sample)

Post by LuMo »

if you need to transpose a matrix, just get my code here

@name: transposeMatrix()
@param: matrix (table in table)
@return: returns the transposed matrix

in the lua sample onlne is already an example-matrix included
and a function to print it onscreen (with print())

greets Lumo

PS: comments and critic wellcome
chaos
Posts: 135
Joined: Sun Apr 10, 2005 5:05 pm

Post by chaos »

i'm not sure .tt is a valid tld..
Chaosmachine Studios: High Quality Homebrew.
Shine
Posts: 728
Joined: Fri Dec 03, 2004 12:10 pm
Location: Germany

Post by Shine »

chaos wrote:i'm not sure .tt is a valid tld..
It is a valid tld: http://nic.tt/ Trinidad and Tobago are some islands in the southern Caribbean Sea.
chaos
Posts: 135
Joined: Sun Apr 10, 2005 5:05 pm

Post by chaos »

Shine wrote:
chaos wrote:i'm not sure .tt is a valid tld..
It is a valid tld: http://nic.tt/ Trinidad and Tobago are some islands in the southern Caribbean Sea.
it seems you're right. i still can't access his site, though. :\
Chaosmachine Studios: High Quality Homebrew.
LuMo
Posts: 410
Joined: Sun Aug 21, 2005 2:45 am
Location: Austria
Contact:

Post by LuMo »

sorry, seems that there were some troubles with forwarding to my webspace yesterday... should work now :)
also added another small function

str_explode(text, needle)
str_implode(text, needle)

to convert a string to array, and vice versa (splitted by needle)

greets
Lumo
Post Reply