Skip to content

Commit

Permalink
updated browser instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
waylonflinn committed Dec 8, 2015
1 parent 9b5cf4f commit 83dfde5
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,19 @@ GPU accelerated BLAS for your browser, no add-ons required.
This is mostly a preview to whet your appetite for the soon-to-be-released (in a week or so)
real thing.

## Example
First, include the `weblas.js` file (from a release or the `dist` directory).

```html
<script src="./weblas.js"></script>
```

var gl = new WebGL(),
gemm = new GEMMFloatCalculator(gl);
Then use it like this (in another `script` tag).

```javascript

var gl = new weblas.WebGL(),
gemm = new weblas.GEMMFloatCalculator(gl);


var h1 = 1024, w1 = 1024,
Expand Down

0 comments on commit 83dfde5

Please sign in to comment.