Skip to content

Commit

Permalink
relative cite
Browse files Browse the repository at this point in the history
  • Loading branch information
wangcaihua authored Aug 16, 2019
1 parent 80598fd commit 701faf6
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,18 @@ For example, if we know the operator type is `intersection`, the result size is
### 2. Storage aware (Storage siwtch)
As mentioned in Smart rehash, the vectors is getting denser as the calculation going. If the sparsity exceeds a certain threshold, we choose to switch the sparse storage to dense one to promote the calculation efficiency.

![figure1](docs\imgs\switch.gif)
![figure1](./docs/imgs/switch.gif)

There is a relationship between Storage aware and Smart rehash.
![figure2](docs\imgs\figure02.png)
![figure2](./docs/imgs/figure02.png)
If the sparsity the below some threshold, we choose Smart rehash, and over the threshold, choose Storage siwtch.

### 3. Executor-expression mechanism

Expression folding is an excellent feature for reducing function calls and iteration. Unfortunately, there is no expression folding in our math lib. However, we provide an executor-expression mechanism to allow use do expression folding manually.

for example, we can fold the expression in the red box manually to reduce calculation.
![figure3](docs\imgs\figure03.jpg)
![figure3](./docs/imgs/figure03.jpg)


At last, User friendly. User can create vector and matrix for factory classes `VFactory` and `MFactory` respectively. After the vector and matrix created, they can be used as if you are doing mathematical deduction without worrying about the data type and storage.
At last, User friendly. User can create vector and matrix for factory classes `VFactory` and `MFactory` respectively. After the vector and matrix created, they can be used as if you are doing mathematical deduction without worrying about the data type and storage.

0 comments on commit 701faf6

Please sign in to comment.