Download the free trial version
Basic4android Video
Features
Tutorials and manuals
Showcase
Screenshots

Go Back   Android Development Forum - Basic4android > Basic4ppc (Windows Mobile) > Code Samples & Tips > Additional Libraries
Documentation Wiki Register Members List B4P Search Today's Posts Mark Forums Read

Additional Libraries Users contributed libraries.
This sub-forum is only available to licensed users.

Matrix Library

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 01-19-2010, 03:44 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default Matrix Library

Matrix library provides means to perform mathematical operations between matrices (= arrays of dimension one or two ), on matrices and with scalars.

The attachment includes the library, the source (so it is compiled with the application), a help file and a demo program to play with.

In addition - I updated my Minimat program to use this library.

I'm looking forward to comments, bugs or advise for better programming

Edit: - found an error in the definition of Dot multiplication, raised to 1.1
Edit: - version 1.2 with solveM and SolveV ,for B and X matrices or vectors.
Attached Files
File Type: zip Matrix1.2.zip (17.0 KB, 73 views)
__________________
David Erez
Ramat Hasharon, Israel

Last edited by derez : 01-20-2010 at 06:38 AM.
Reply With Quote
  #2 (permalink)  
Old 01-19-2010, 07:45 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Sorry, Dot multiplication is valid for vectors only, so I made a correction to version 1.1
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #3 (permalink)  
Old 01-20-2010, 05:19 AM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

Matrix 1.2 updated, includes two options to solve a set of equations -
1. B and X are matrices
2. B and X are vectors.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
  #4 (permalink)  
Old 01-20-2010, 03:36 PM
Erel's Avatar
Administrator
 
Join Date: Apr 2007
Posts: 15,689
Awards Showcase
Basic4ppc Founder 
Total Awards: 1
Default



I think that a Matrix library can be useful in many cases.
BTW, why are you using the the decimal type for your internal calculations?
Reply With Quote
  #5 (permalink)  
Old 01-20-2010, 03:46 PM
derez's Avatar
Basic4ppc Expert
 
Join Date: May 2007
Posts: 978
Awards Showcase
Beta Tester Competition Winner 
Total Awards: 2
Default

I thought that it provides better accuracy, due to truncation errors. I use it where there are divisions.
__________________
David Erez
Ramat Hasharon, Israel
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Door library (Beta) - Special library Erel Official Updates 60 01-13-2011 11:23 AM
Merging Outlook library and Phone library Erel Official Updates 11 09-15-2010 09:22 AM
MiniMat - Matrix Calculator derez Share Your Creations 11 01-20-2010 05:27 AM
Matrix of Button - Movement reny1978to Questions (Windows Mobile) 2 05-07-2009 02:04 PM
PhoneticAlgorithms Library (ex-StringComparison Library) moster67 Additional Libraries 10 11-11-2008 07:46 PM


All times are GMT. The time now is 07:07 AM.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0