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) –