Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Structured matrices

Project description

Structured Matrices

Build Coverage Status Latest Docs

Structured matrices

Note: This package requires Python 3.6 or higher.


Before installing the package, please ensure that gcc and gfortran are available. On OS X, these are both installed with brew install gcc; users of Anaconda may want to instead consider conda install gcc. On Linux, gcc is most likely already available, and gfortran can be installed with apt-get install gfortran. Then simply

pip install backends-matrix

Basic Usage

>>> import lab as B

>>> from matrix import Diagonal

>>> d = Diagonal(B.ones(3))

>>> d
Diagonal matrix with diagonal
  [1. 1. 1.]
>>> d + d
Diagonal matrix with diagonal
  [2. 2. 2.]
>>> d + B.randn(3, 3)
Dense matrix:
  (3x3 array of data type float64)
  [[ 0.231  1.107 -0.648]
   [-1.199  1.668 -1.344]
   [ 0.545  0.807  0.934]]

Matrix Types

Coming soon.

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for backends-matrix, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size backends-matrix-0.1.0.tar.gz (5.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page