| 120 | } |
| 121 | |
| 122 | bool ArrayInfo::isVector() const { |
| 123 | int singular_dims = 0; |
| 124 | int non_singular_dims = 0; |
| 125 | for (int i = 0; i < AF_MAX_DIMS; i++) { |
| 126 | non_singular_dims += (dims()[i] != 0 && dims()[i] != 1); |
| 127 | singular_dims += (dims()[i] == 1); |
| 128 | } |
| 129 | return singular_dims == AF_MAX_DIMS - 1 && non_singular_dims == 1; |
| 130 | } |
| 131 | |
| 132 | bool ArrayInfo::isComplex() const { return arrayfire::common::isComplex(type); } |
| 133 |
no outgoing calls
no test coverage detected