mirror of
https://github.com/TREX-CoE/trexio.git
synced 2024-12-22 20:35:44 +01:00
Rename datatype buffer -> buffered
This commit is contained in:
parent
7b95a0195a
commit
cb7956ef83
@ -499,7 +499,7 @@ def get_dtype_dict (dtype: str, target: str, rank = None, int_len_printf = None)
|
|||||||
f'group_{target}_format_scanf' : 'lf',
|
f'group_{target}_format_scanf' : 'lf',
|
||||||
f'group_{target}_py_dtype' : 'float'
|
f'group_{target}_py_dtype' : 'float'
|
||||||
})
|
})
|
||||||
elif 'buffer' in dtype:
|
elif 'buffered' in dtype:
|
||||||
dtype_dict.update({
|
dtype_dict.update({
|
||||||
'default_prec' : '64',
|
'default_prec' : '64',
|
||||||
f'group_{target}_dtype' : 'double',
|
f'group_{target}_dtype' : 'double',
|
||||||
@ -780,7 +780,7 @@ def split_dset_dict_detailed (datasets: dict) -> tuple:
|
|||||||
# split datasets in numeric- and string- based
|
# split datasets in numeric- and string- based
|
||||||
if 'str' in datatype:
|
if 'str' in datatype:
|
||||||
dset_string_dict[k] = tmp_dict
|
dset_string_dict[k] = tmp_dict
|
||||||
elif 'buffer' in datatype:
|
elif 'buffered' in datatype:
|
||||||
dset_buffer_dict[k] = tmp_dict
|
dset_buffer_dict[k] = tmp_dict
|
||||||
elif is_sparse:
|
elif is_sparse:
|
||||||
dset_sparse_dict[k] = tmp_dict
|
dset_sparse_dict[k] = tmp_dict
|
||||||
|
14
trex.org
14
trex.org
@ -40,7 +40,7 @@ the [[./examples.html][examples]]. The ~sparse~ data representation implies the
|
|||||||
of indices and values.
|
of indices and values.
|
||||||
|
|
||||||
For the Configuration Interfaction (CI) and Configuration State Function (CSF)
|
For the Configuration Interfaction (CI) and Configuration State Function (CSF)
|
||||||
groups, the ~buffer~ data type is introduced, which allows similar incremental
|
groups, the ~buffered~ data type is introduced, which allows similar incremental
|
||||||
I/O as for ~sparse~ data but without the need to write indices of the sparse values.
|
I/O as for ~sparse~ data but without the need to write indices of the sparse values.
|
||||||
|
|
||||||
For determinant lists (integer bit fields), the ~special~ attribute is present in the type.
|
For determinant lists (integer bit fields), the ~special~ attribute is present in the type.
|
||||||
@ -703,10 +703,10 @@ prim_factor =
|
|||||||
|
|
||||||
#+NAME: determinant
|
#+NAME: determinant
|
||||||
| Variable | Type | Dimensions | Description |
|
| Variable | Type | Dimensions | Description |
|
||||||
|---------------+----------------+---------------------+--------------------------------------------------------|
|
|---------------+------------------+---------------------+--------------------------------------------------------|
|
||||||
| ~num~ | ~dim readonly~ | | Number of determinants |
|
| ~num~ | ~dim readonly~ | | Number of determinants |
|
||||||
| ~list~ | ~int special~ | ~(determinant.num)~ | List of determinants as integer bit fields |
|
| ~list~ | ~int special~ | ~(determinant.num)~ | List of determinants as integer bit fields |
|
||||||
| ~coefficient~ | ~float buffer~ | ~(determinant.num)~ | Coefficients of the determinants from the CI expansion |
|
| ~coefficient~ | ~float buffered~ | ~(determinant.num)~ | Coefficients of the determinants from the CI expansion |
|
||||||
|
|
||||||
#+CALL: json(data=determinant, title="determinant")
|
#+CALL: json(data=determinant, title="determinant")
|
||||||
|
|
||||||
@ -716,7 +716,7 @@ prim_factor =
|
|||||||
"determinant": {
|
"determinant": {
|
||||||
"num" : [ "dim readonly" , [] ]
|
"num" : [ "dim readonly" , [] ]
|
||||||
, "list" : [ "int special" , [ "determinant.num" ] ]
|
, "list" : [ "int special" , [ "determinant.num" ] ]
|
||||||
, "coefficient" : [ "float buffer", [ "determinant.num" ] ]
|
, "coefficient" : [ "float buffered", [ "determinant.num" ] ]
|
||||||
} ,
|
} ,
|
||||||
#+end_src
|
#+end_src
|
||||||
:end:
|
:end:
|
||||||
@ -739,9 +739,9 @@ prim_factor =
|
|||||||
|
|
||||||
#+NAME: csf
|
#+NAME: csf
|
||||||
| Variable | Type | Dimensions | Description |
|
| Variable | Type | Dimensions | Description |
|
||||||
|-------------------+----------------+-----------------------------+------------------------------------------------|
|
|-------------------+------------------+-----------------------------+------------------------------------------------|
|
||||||
| ~num~ | ~dim readonly~ | | Number of CSFs |
|
| ~num~ | ~dim readonly~ | | Number of CSFs |
|
||||||
| ~coefficient~ | ~float buffer~ | ~(csf.num)~ | Coefficients of the CSFs from the CI expansion |
|
| ~coefficient~ | ~float buffered~ | ~(csf.num)~ | Coefficients of the CSFs from the CI expansion |
|
||||||
| ~det_coefficient~ | ~float sparse~ | ~(determinant.num,csf.num)~ | Projection on the determinant basis |
|
| ~det_coefficient~ | ~float sparse~ | ~(determinant.num,csf.num)~ | Projection on the determinant basis |
|
||||||
|
|
||||||
#+CALL: json(data=csf, title="csf")
|
#+CALL: json(data=csf, title="csf")
|
||||||
@ -751,7 +751,7 @@ prim_factor =
|
|||||||
#+begin_src python :tangle trex.json
|
#+begin_src python :tangle trex.json
|
||||||
"csf": {
|
"csf": {
|
||||||
"num" : [ "dim readonly" , [] ]
|
"num" : [ "dim readonly" , [] ]
|
||||||
, "coefficient" : [ "float buffer", [ "csf.num" ] ]
|
, "coefficient" : [ "float buffered", [ "csf.num" ] ]
|
||||||
, "det_coefficient" : [ "float sparse" , [ "csf.num", "determinant.num" ] ]
|
, "det_coefficient" : [ "float sparse" , [ "csf.num", "determinant.num" ] ]
|
||||||
} ,
|
} ,
|
||||||
#+end_src
|
#+end_src
|
||||||
|
Loading…
Reference in New Issue
Block a user