netallocation.linalg module

Created on Thu Mar 7 10:17:46 2019

@author: fabian

netallocation.linalg.dedup_axis(da, newdims)[source]

Helper function for DataArrays which have two dimensions using the same coordinates (duplicate dimensions), like (bus, bus). This sets a new DataArray with new names for the new coordinates.

netallocation.linalg.diag(da, newdims=None, sparse=False)[source]

Convenience function to select diagonal from a square matrix, or to build a diagonal matrix from a 1 dimensional array.

Parameters

da (xarray.DataArray) –

netallocation.linalg.dot(*das)[source]

Perform a matrix-multiplication for two or more xarray.DataArrays. This is different to the xarray dot-product which is a tensor-product

netallocation.linalg.eig(M)[source]
netallocation.linalg.inv(df, pre_clean=False)[source]
netallocation.linalg.lower(df)[source]
netallocation.linalg.norm(ds, dims)[source]
netallocation.linalg.null(df)[source]
netallocation.linalg.pinv(df)[source]
netallocation.linalg.upper(df)[source]