23 n = item_name.find(
'_');
24 if (
n != std::string::npos) {
25 spec_no = atol(item_name.c_str() +
n + 1);
46 item = findItem(item_name,
false);
48 for (j = 0; j < (nspec == 0 ? 1 : nspec); j++) {
49 lVal[j] = *(item->
value);
56 item = findItem(item_name,
true);
58 if (item->
dim1 == 0) {
70 for (j = 0; j < nspec; j++) {
73 for (i = 0; i < m_ndet; i++) {
74 if (m_spec_array[i] == spec_array[j]) {
80 lVal[j] = lVal[j] /
n;
94 item = findItem(item_name,
false);
96 item = findItem(item_name,
true);
99 if (item->
dim1 == 0) {
100 dims_array[0] = *(item->
dim0);
103 dims_array[0] = *(item->
dim0);
104 dims_array[1] = *(item->
dim1);
120 item = findItem(item_name,
false);
122 item = findItem(item_name,
true);
126 if (item->
dim1 == 0) {
131 for (
int k = 0; k < nspec; k++) {
132 for (
int j = 0; j <
n; j++) {
133 larray[j + k *
n] = item->
value[j];
149 n = item_name.find(
'_');
150 if (
n != std::string::npos) {
151 spec_no = atol(item_name.c_str() +
n + 1);
152 return getIntArrayItem(item_name.substr(0,
n), &spec_no, 1, larray);
155 return getIntArrayItem(item_name, &spec_no, 1, larray);
double value
The value of the point.
PyObject * getItem(WorkspaceGroup &self, const int &index)
int getArrayItem(const std::string &item_name, int nspec, T *larray)
Gets an array of items.
int getArrayItemSize(const std::string &item_name, int *dims_array, int &ndims)
Gets the size of an array of items.
int getItem(const std::string &item_name, T &value)
Gets an item.
structure to hold a dae item
const int * dim1
dimension one array
const T * value
array of type T
const int * dim0
dimension zero array