Logic for detecting zero hot, one hot, and multi-hot vectors
AssigneeQUALCOMM Incorporated
InventorSandeep Kumar DUBEY
Life of this patent
Estimating the term…
Abstract
A method of detecting vector values includes receiving an input vector of bits. The input vector has a vector length. The method also includes generating a reverse input vector as a reverse of the input vector. The method further includes encoding the input vector as a function of a number of bits for indexing the input vector to generate an encoded input vector. The method still further includes encoding the reverse input vector as the function of a number of bits for indexing the reverse input vector to generate an encoded reverse input vector. The method also includes setting one hot to TRUE in response to the encoded input vector being equal to an inversion of the encoded reverse input vector.
Claims20
A method of detecting vector values, comprising:
- receiving an input vector of bits, the input vector having a vector length;
- generating a reverse input vector as a reverse of the input vector;
- encoding the input vector as a function of a number of bits for indexing the input vector to generate an encoded input vector;
- encoding the reverse input vector as the function of a number of bits for indexing the reverse input vector to generate an encoded reverse input vector;
- and
- setting one hot to TRUE in response to the encoded input vector being equal to an inversion of the encoded reverse input vector.
An apparatus for detecting vector values, comprising:
- at least one memory;
- and
- at least one processor coupled to the at least one memory, the at least one processor configured:
- to receive an input vector of bits, the input vector having a vector length;
- to generate a reverse input vector as a reverse of the input vector;
- to encode the input vector as a function of a number of bits for indexing the input vector to generate an encoded input vector;
- to encode the reverse input vector as the function of a number of bits for indexing the reverse input vector to generate an encoded reverse input vector;
- and
- to set one hot to TRUE in response to the encoded input vector being equal to an inversion of the encoded reverse input vector.
A non-transitory computer-readable medium having program code recorded thereon, the program code executed by a processor and comprising:
- program code to receive an input vector of bits, the input vector having a vector length;
- program code to generate a reverse input vector as a reverse of the input vector;
- program code to encode the input vector as a function of a number of bits for indexing the input vector to generate an encoded input vector;
- program code to encode the reverse input vector as the function of a number of bits for indexing the reverse input vector to generate an encoded reverse input vector;
- and
- program code to set one hot to TRUE in response to the encoded input vector being equal to an inversion of the encoded reverse input vector.
Dependencies are inferred from the claim text.