developerWorks: Numerical Python: Numeric and Numarray Packages | Linux Today

developerWorks: Numerical Python: Numeric and Numarray Packages

Written By
Web Webster
Web Webster
Nov 7, 2003

“The first thing to know about the Numerical Python package is
that it doesn’t let you do anything you cannot already do with
standard Python. It does let you do many of the same things a heck
of a lot faster. Actually, that’s not quite all; there are a number
of operations on arrays that are much more elegant to express in
Numeric or Numarray than they are with standard Python data types
and syntax. But mostly it is the impressive speed that draws users
to Numerical Python.

“In essence, Numerical Python just gives you a new data type,
the array. In contrast to lists, tuples, and dictionaries, which
may contain heterogeneous elements, Numarray arrays contain only
elements of a homogeneous data type. The other useful thing about
Numarray arrays is that they may be multi-dimensional — but the
dimensionality of arrays is a bit different from the simple
nestability of lists. Numerical Python draws on the experience of
programmers–particularly those from scientific backgrounds–who
have abstracted the best features of arrays in languages such as
APL, FORTRAN, MATLAB, and S–and created arrays whose shape and
dimensionality are easily changeable. Back to this soon.

“Operations on arrays in Numerical Python are performed
elementwise. Even though two-dimensional arrays are similar to
matrices from linear algebra, operations (such as multiply) have
nothing to do with the operations in linear algebra (such as matrix
multiplication)…”


Complete Story

Web Webster

Web Webster

Web Webster has more than 20 years of writing and editorial experience in the tech sector. He’s written and edited news, demand generation, user-focused, and thought leadership content for business software solutions, consumer tech, and Linux Today, he edits and writes for a portfolio of tech industry news and analysis websites including webopedia.com, and DatabaseJournal.com.

Linux Today Logo

LinuxToday is a trusted, contributor-driven news resource supporting all types of Linux users. Our thriving international community engages with us through social media and frequent content contributions aimed at solving problems ranging from personal computing to enterprise-level IT operations. LinuxToday serves as a home for a community that struggles to find comparable information elsewhere on the web.

Property of TechnologyAdvice. © 2026 TechnologyAdvice. All Rights Reserved

Advertiser Disclosure: Some of the products that appear on this site are from companies from which TechnologyAdvice receives compensation. This compensation may impact how and where products appear on this site including, for example, the order in which they appear. TechnologyAdvice does not include all companies or all types of products available in the marketplace.