Comments (3)
I think that, if you're working with opengl, it'd be better to use a matrix lib written specifically with opengl in mind. That is, only 3x3 or 4x4 matrices, backed by float32s. I know that at least one package like this exists, but I'm having a lot of trouble tracking it down.
I'm not going to built float32 support into go.matrix, but it'd be straightforward and fast to write your own function that, for instance, took a DenseMatrix and turned it into a row-major []float32.
from go.matrix.
Although I think the overhead for such a conversion is too big for OpenGL requirements, I think I agree go.matrix might be a bit much for the user case scenario's OpenGL development entails.
from go.matrix.
Right. For typical opengl stuff you need only the basic matrix operations -
scale, add, multiply. These things will be super fast if you are only
dealing with 4x4 matrices and you can hard-code everything. For trickier
things that go.matrix can offer, like the various decompositions, the time
spent doing the decomp will overwhelm the time spent converting it between
formats.
On Tue, Jan 29, 2013 at 10:47 AM, Neal van Veen [email protected]:
Although I think the overhead for such a conversion is too big for OpenGL
requirements, I think I agree go.matrix might be a bit much for the user
case scenario's OpenGL development entails.—
Reply to this email directly or view it on GitHubhttps://github.com//issues/6#issuecomment-12840904.
from go.matrix.
Related Issues (11)
- MakeDenseMatrix generates garbage HOT 1
- Enable matrix-operation chaining by having matrix-operations panic instead of returning the extra error HOT 3
- Possible Crash in QR
- Bug when the row and col index is negative when getting or setting value in the sparse.go
- ParseMatlab does not handle floating point values
- super-slow execution, is that expected? HOT 1
- New Repo owner?
- Some documentation? HOT 1
- matrix norms/determinant HOT 4
- Missing LICENSE file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go.matrix.