linear-algebra
Vectorize call to function of two vectors (treat matrix as array of vector)
I wish to compute the cumulative cosine distance between sets of vectors. The natural representation of a set of vectors is a matrix...but how do I vectorize the following?[详细]
2023-02-08 02:32 分类:问答Determine if A+B=C exists in an array of n integers
This is a problem a friend of mine received as his homework (in algorithm and data structure class). He asked me about this. However, I can\'t solve it and have been thinking about it for some time du[详细]
2023-02-08 01:01 分类:问答What's wrong with my PCA?
My code: from numpy import * def pca(orig_data): data = array(orig_data) data = (data - data.mean(axis=0)) / data.std(axis=0)[详细]
2023-02-06 23:28 分类:问答shoot projectile (straight trajectory) at moving target in 3 dimensions
I already googled for the problem but only found either 2D solutions or formulas that didn\'t work for me (found this formula that looks nice: http://www.ogre3d.org/forums/viewtopic.php?f=10&t=557[详细]
2023-02-05 14:00 分类:问答Lapackpp vs Boost BLAS
for start, i am newbie in C++. i am writing a program for my Master thesis which part of it suppose to solve regression in a recursive way.[详细]
2023-02-02 15:06 分类:问答Modular Math in Java (Number Line which Wraps Around)
I am trying to create a simple function that utilizes modular arithmetic. This is essentially a number line that wraps around. Specifically I want to use a Mod 8 number line in Java.[详细]
2023-02-02 00:38 分类:问答Revisit: 2D Array Sorted Along X and Y Axis
So, this is a common interview question.There\'s already a topic up, which I have read, but it\'s dead, and no answer was ever accepted.On top of that, my interests lie in a slightly more constrained[详细]
2023-01-31 18:18 分类:问答numpy alternative for C++: linear algebra / FFT / numeric goodies?
I\'ve been using python + numpy for a while, and got familiarized (and char开发者_JS百科med) with it. Now, I need to do some calculations using C++, and was looking for a nice library to do numerical[详细]
2023-01-30 09:03 分类:问答Separating Axis Theorem is driving me nuts!
i am working on an implementation of the Separting Axis Theorem for use in 2D games. It kind of works but just kind of.[详细]
2023-01-29 01:22 分类:问答Looking for testing matrices/systems for iterative linear solver
I am currently working on a C++-based library for large, sparse linear algebra problems (yes, I know many such libraries exist, but I\'m rolling my own mostly to learn about iterative solvers, sparse[详细]
2023-01-28 21:44 分类:问答