Math::Matrix 0.5 
Date Added: August 11, 2010  Visits: 830 


Math::Matrix can multiply and invert Matrices. The following methods are available: new Constructor arguments are a list of references to arrays of the same length. The arrays are copied. The method returns undef in case of error. $a = new Math::Matrix ([rand,rand,rand], [rand,rand,rand], [rand,rand,rand]); If you call new as method, a zero filled matrix with identical deminsions is returned. clone You can clone a matrix by calling: $b = $a>clone; size You can determine the dimensions of a matrix by calling: ($m, $n) = $a>size; concat Concatenates two matrices of same row count. The result is a new matrix or undef in case of error. $b = new Math::Matrix ([rand],[rand],[rand]); $c = $a>concat($b); transpose Returns the transposed matrix. This is the matrix where colums and rows of the argument matrix are swaped. multiply Multiplies two matrices where the length of the rows in the first matrix is the same as the length of the columns in the second matrix. Returns the product or undef in case of error. solve Solves a equation system given by the matrix. The number of colums must be greater than the number of rows. If variables are dependent from each other, the second and all further of the dependent coefficients are 0. This means the method can handle such systems. The method returns a matrix containing the solutions in its columns or undef in case of error. invert Invert a Matrix using solve. multiply_scalar Multiplies a matrix and a scalar resulting in a matrix of the same dimensions with each element scaled with the scalar. $a>multiply_scalar(2); scale matrix by factor 2 add Add two matrices of the same dimensions. substract Shorthand for add($other>negative) equal Decide if two matrices are equal. The criterion is, that each pair of elements differs less than $Math::Matrix::eps. slice Extract columns: a>slice(1,3,5); determinant Compute the determinant of a matrix. dot_product Compute the dot product of two vectors. absolute Compute the absolute value of a vector. normalizing Normalize a vector. cross_product Compute the crossproduct of vectors. print Prints the matrix on STDOUT. If the method has additional parameters, these are printed before the matrix is printed. pinvert Compute the pseudoinverse of the matrix: ((AA)^1)A EXAMPLE use Math::Matrix; srand(time); $a = new Math::Matrix ([rand,rand,rand], [rand,rand,rand], [rand,rand,rand]); $x = new Math::Matrix ([rand,rand,rand]); $a>print("An"); $E = $a>concat($x>transpose); $E>print("Equation systemn"); $s = $E>solve; $s>print("Solutions sn"); $a>multiply($s)>print("A*sn");.

License: Freeware  Size: 6.14 KB 
Puzzles

A Sudoku Solver in C 1.11
A Sudoku Solver in C is a consolebased Linux program, written in C language, that solves Su Doku puzzles using deductive logic. It will only resort to trialanderror and backtracking approaches upon exhausting its deductive moves. Puzzles must... 
25.6 KB  
Networking

Nofollow Case by Case 1.2.0.1
Plugin Features: * Follow Plugin for WordPress (all comment links are real links by default). * Strip nofollow from comment links, comment author links, pingbacks and trackbacks (default). * Selectively apply nofollow to any comment link you do... 
10 KB  
Libraries

LibsX 20040123
LibsX (formerly LibSpeedX) is a C++ multiplatform set of basic libraries (like strings, ini files, etc) optimized for speed and made from scratch. LibsXs goal is to make programs like games with basic libraries highly optimized for speed and... 
27.65 KB  
Entertainment

Hardy Farm 1.0
Download the The Barn at Hardy Farm Weddings app to take a virtual tour of our new wedding and event venue in the White Mountains of Maine, minutes from North Conway, New Hampshire. Our restored 18th Century barn and farmhouse feature modern... 
27.6 MB  
Modules

Add new products fields 2.0
If the default fields are not enough for you ther have a look at this piece of code on how to add new products fields. 

Utilities

POLUS 0.0.2
POLUS, a software maintenance tool capable of iteratively evolving running software into new versions, aims to retain backward binary compatibility, support for multithread software and recover already tainted state of running software with low... 
1.38 MB  
Automation Tools

OpenSCADA Project 0.8.0(Atlantis)
The OpenSCADA project aims to create a fullfeatured and stateoftheart SCADA (Supervisory Control and Data Acquisition) system to be used in industrial and civil engineering applications to control distributed systems from a master location.... 

Modules

Add a BACK button in the product_info 1.2
This is a small modification in order to alow costumers to go back when they are in the product info page. 

Miscellaneous

Ensuring a name definition in a module namespace 1.0
This script ensures that a name exists in a target namespace. If it does not, make it available in the target namespace using the given definition. The target should be a namespace dictionary (presumably for a module, see the discussion below... 

Libraries

Meta Matrix Library 0.7.2
Meta Matrix Library is a modular designed collection of C libraries. Meta Matrix Library was developed as part of the Free Finite Element Package to provide easy and consistent access to numerical linear algebra software for sparse and dense... 
460.8 KB 
Programming

FLEXdb Digital Asset Manager 3.0.9
FLEXdb  an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEXdb has a JSP client, Java app server for file input and output and an EJB metadata... 
21.57 MB  
Programming

Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom ICR8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based.... 
20.48 KB  
Programming

dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and... 
327.68 KB  
Programming

Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations. 
471.04 KB  
Programming

libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems. 
143.36 KB  
Libraries

wolfSSL 3.15.3
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments  primarily because of its small size, speed, and feature set. It is commonly used in standard operating... 
3.88 MB  
Libraries

EuGTK 4.8.9
Makes it easy to develop good looking, fast, crossplatform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straightforward syntax. EuGTK allows programming in a clean, objectoriented... 
10.68 MB  
Libraries

Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable. 
5.35 KB  
Libraries

Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse>new( join("", ) ); $info = $parser>required;... 
8.19 KB  
Libraries

sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cppalike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also... 
10.24 KB 