Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 956 Categories, Downloaded 50.226.178 Times

PDL::Primitive 2.4.3

  Date Added: August 20, 2010  |  Visits: 836

PDL::Primitive

Report Broken Link
Printer Friendly Version


Product Homepage
Download (90 downloads)



PDL::Primitive Perl module contains primitive operations for pdl. This module provides some primitive and useful functions defined using PDL::PP and able to use the new indexing tricks. See PDL::Indexing for how to use indices creatively. For explanation of the signature format, see PDL::PP. Inner product over one dimension c = sum_i a_i * b_i , BadDoc => If a() * b() contains only bad data, c() is set bad. Otherwise c() will have its bad flag cleared, as it will not contain any bad values., ); # pp_def( inner ) pp_def( outer, HandleBad => 1, Pars => a(n); b(m); [o]c(n,m);, Code => loop(n,m) %{ $c() = $a() * $b(); %}, BadCode => loop(n,m) %{ if ( $ISBAD(a()) || $ISBAD(b()) ) { $SETBAD(c()); } else { $c() = $a() * $b(); } %}, Doc => =for ref outer product over one dimension Naturally, it is possible to achieve the effects of outer product simply by threading over the "*" operator but this function is provided for convenience. ); # pp_def( outer ) pp_addpm(<<EOD); =head2 x Signature: (a(i,x), b(z,i),[o]c(x,z)) Matrix multiplication PDL overloads the x operator (normally the repeat operator) for matrix multiplication. The number of columns (size of the 0 dimension) in the left-hand argument must normally equal the number of rows (size of the 1 dimension) in the right-hand argument. Row vectors are represented as (N x 1) two-dimensional PDLs, or you may be sloppy and use a one-dimensional PDL. Column vectors are represented as (1 x N) two-dimensional PDLs. Threading occurs in the usual way, but as both the 0 and 1 dimension (if present) are included in the operation, you must be sure that you dont try to thread over either of those dims. EXAMPLES: Here are some simple ways to define vectors and matrices: perldl> $r = pdl(1,2); # A row vector perldl> $c = pdl([[3],[4]]); # A column vector perldl> $c = pdl(3,4)->(*1); # A column vector, using NiceSlice perldl> $m = pdl([[1,2],[3,4]]); # A 2x2 matrix Now that we have a few objects prepared, here is how to matrix-multiply them: perldl> print $r x $m # row x matrix = row [ [ 7 10] ] perldl> print $m x $r # matrix x row = ERROR PDL: Dim mismatch in matmult of [2x2] x [2x1]: 2 != 1 perldl> print $m x $c # matrix x column = column [ [ 5] [11] ] perldl> print $m x 2 # Trivial case: scalar mult. [ [2 4] [6 8] ] perldl> print $r x $c # row x column = scalar [ [11] ] perldl> print $c x $r # column x row = matrix [ [3 6] [4 8] ].

Requirements: No special requirements
Platforms: Linux
Keyword: Column Libraries Pdl Pdlprimitive Perl Module Primitive Perl Print Programming
Users rating: 0/10

License: Freeware Size: 2.1 MB
USER REVIEWS
More Reviews or Write Review


PDL::PRIMITIVE RELATED
Libraries  -  PDL::NiceSlice 2.4.3
PDL::NiceSlice Perl module contains a nicer slicing syntax for PDL. SYNOPSYS use PDL::NiceSlice; $a(1:4) .= 2; # concise syntax for ranges print $b((0),1:$end); # use variables in the slice expression $a->xchg(0,1)->(($pos-1)) .= 0; #...
2.1 MB  
Libraries  -  PDL::Indexing 2.4.3
PDL::Indexing Perl module contains a tutorial on how to index piddles. This manpage should serve as a first tutorial on the indexing and threading features of PDL. This manpage is still in alpha development and not yet complete. "Meta"...
2.1 MB  
Libraries  -  PDL::Ufunc 2.4.3
PDL::Ufunc Perl module contains primitive ufunc operations for pdl. This module provides some primitive and useful functions defined using PDL::PP based on functionality of what are sometimes called ufuncs (for example NumPY and Mathematica talk...
2.1 MB  
Libraries  -  PDL::MatrixOps 2.4.3
PDL::MatrixOps Perl module contains some useful Matrix operations. SYNOPSIS $inv = $a->inv; $det = $a->det; ($lu,$perm,$par) = $a->lu_decomp; $x = lu_backsub($lu,$perm,$b); # solve $a x $x = $b PDL::MatrixOps is PDLs built-in matrix...
2.1 MB  
Programming  -  Html2perl 0.2
Html2perl is a simple console based utility for converting HTML text streams (or any ASCII based text stream for that matter) into a series of perl print statements for inclusion in a Perl script.
36.54 KB  
Programming  -  Pattern for Linux 1.5
Pattern is a web mining module for the Python programming language. It bundles tools for data retrieval (Google + Twitter + Wikipedia API, web spider, HTML DOM parser), text analysis (rule-based shallow parser, WordNet interface,...
11.59 MB  
Libraries  -  PDL::Parallel::MPI 0.02
PDL::Parallel::MPI Perl module contains routines to allow PDL objects to be moved around on parallel systems using the MPI library. SYNOPSIS use PDL; use PDL::Parallel::MPI; mpirun(2); MPI_Init(); $rank = get_rank(); $a=$rank * ones(2);...
133.12 KB  
Libraries  -  PDL::Transform::Cartography 2.4.3
PDL::Transform::Cartography Perl module contains useful cartographic projections. SYNOPSIS # make a Mercator map of Earth use PDL::Transform::Cartography; $a = earth_coast(); $a = graticule(10,2)->glue(1,$a); $t = t_mercator; $w =...
2.1 MB  
Libraries  -  Gtk2::Ex::MindMapView::Layout::Column 0.000001
Gtk2::Ex::MindMapView::Layout::Column is a Perl module to display vertical layout of clusters. SYNOPSIS use Gtk2::Ex::MindMapView::Layout::Column; The Gtk2::Ex::MindMapView::Layout::Column is used to layout Gtk2::Ex::MindMapView::Items in...
50.18 KB  
Libraries  -  Syntax::Highlight::Perl 1.0
Syntax::Highlight::Perl is a Perl module that can highlight Perl Syntactical Structures. SYNOPSIS # simple procedural use Syntax::Highlight::Perl :BASIC; # or :FULL print format_string($my_string); # OO use Syntax::Highlight::Perl; my...
33.79 KB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.0
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, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
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 cpp-alike 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