1. A method, comprising: obtaining a binary input vector; generating, by a binary/binary coded decimal (BCD) hardware converter, a plurality of BCD vectors based on the binary input vector; and calculating a BCD output vector based on the plurality of BCD vectors.