Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Learning IPython for Interactive Computing and Data Visualization, Second Edition

You're reading from  Learning IPython for Interactive Computing and Data Visualization, Second Edition

Product type Book
Published in Oct 2015
Publisher
ISBN-13 9781783986989
Pages 200 pages
Edition 1st Edition
Languages
Author (1):
Cyrille Rossant Cyrille Rossant
Profile icon Cyrille Rossant

A primer to vector computing


Vector computing is about efficiently performing mathematical operations on numerical arrays. Many problems in science and engineering actually consist of a sequence of such operations.

This section introduces and demonstrates the multidimensional array data type for numerical computing.

Multidimensional arrays

What is a multidimensional array? Consider a vector containing 1000 real numbers. It has one dimension, since numbers are stored along a single axis. Now, consider a matrix with 1000 rows and 1000 columns. It contains 1,000,000 numbers. Because it has two dimensions, you need to specify both the row and column to refer to a specific number.

More generally, an n-dimensional array, also called ndarray, is an n-dimensional matrix (or tensor). Every number is identified by n indices (i_1, ... i_n).

Many types of real-world data can be represented as ndarrays:

  • The evolution of a stock exchange price is a 1D array (vector) with one value per day (or per hour, per...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime}