Structured matrices
Project description
Structured Matrices
Structured matrices
Note: This package requires Python 3.6 or higher.
Installation
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
backends-matrix-0.1.0.tar.gz
(5.6 kB
view hashes)