dstructs / matrix Goto Github PK
View Code? Open in Web Editor NEWMatrices.
License: MIT License
Matrices.
License: MIT License
Currently, matrices are row-major order. Supporting column-major order would require internal modifications to provide efficient access patterns.
object
-based interface.Matrix
and then just taking the transpose?When using the non-raw implementation of the matrix module, it is not possible right now to assign the value NaN
to a float32 or float64 matrix, even though the underlying typed arrays could naturally hold this value. This has been a problem for me in a couple of modules, as it conflicts with our standard of failing silently when a computation is not possible for the given input types. Your thoughts?
Currently, only accept arrays
for methods such as mset
. Should also accept typed-arrays
, etc.
Currently, shape
and strides
are shallow copied. This is leaky and may lead to bugs due to (unintended) mutations.
The following modules should be used:
dstructs-cast-arrays
to cast the internal typed array to a generic arrayutils-copy
to copy shape
and strides
What are your thoughts on allowing for row and column names? R has this feature, and for standard applications in statistics, where the columns of a design matrix hold data for different predictors, this helps immensely. It allows oneself to index via the column and row names, for example.
Could we support something similar?
Here is an example:
mat = matrix( c( 40, 29, 55, 5000, 3900, 5500 ), nrow = 3, ncol = 2 )
colnames( mat ) = c( "Age", "Income" )
Printing the matrix then gives the following:
Age Income
[1,] 40 5000
[2,] 29 3900
[3,] 55 5500
The time has come.
NOTE
s may be found in the source.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.