BinaryMatrix.fromLogicValueArray constructor
- LogicValueArray values
Creates a matrix from a one-dimensional array of packed row values.
The array length becomes rowCount and its element width becomes
columnCount. Values containing x or z are rejected.
Implementation
factory BinaryMatrix.fromLogicValueArray(LogicValueArray values) {
if (values.dimensions.length != 1) {
throw RohdHclException(
'Binary matrix value arrays must have exactly one dimension.');
}
return BinaryMatrix.fromLogicValueRows(values.arrayValues);
}