2018-04-23 07:29:21 +00:00
|
|
|
#!/usr/bin/env python3
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
"""!
|
|
|
|
Author: J.A. de Jong - ASCEE
|
|
|
|
|
|
|
|
Description: LASP configuration
|
|
|
|
"""
|
|
|
|
import numpy as np
|
|
|
|
|
|
|
|
LASP_NUMPY_FLOAT_TYPE = np.float64
|
|
|
|
|
2018-12-29 14:34:24 +00:00
|
|
|
|
2018-04-23 07:29:21 +00:00
|
|
|
def zeros(shape):
|
2022-09-03 18:59:14 +00:00
|
|
|
return np.zeros(shape, dtype=LASP_NUMPY_FLOAT_TYPE, order='F')
|
2018-12-29 14:34:24 +00:00
|
|
|
|
|
|
|
|
2018-04-23 07:29:21 +00:00
|
|
|
def ones(shape):
|
2022-09-03 18:59:14 +00:00
|
|
|
return np.ones(shape, dtype=LASP_NUMPY_FLOAT_TYPE, order='F')
|
2018-12-29 14:34:24 +00:00
|
|
|
|
|
|
|
|
2018-04-23 07:29:21 +00:00
|
|
|
def empty(shape):
|
2022-09-03 18:59:14 +00:00
|
|
|
return np.empty(shape, dtype=LASP_NUMPY_FLOAT_TYPE, order='F')
|