Mathematical vectors, operations on vectors and vectorized programming.

learn more… | top users | synonyms

4
votes
0answers
650 views

computation of gradient vector field in 3D using GradientOrientationFilter

I want to compute a 3D gradient vector field of an Image3D object using the built-in GradientOrientationFilter function in Mathematica. From the documentation I ...
2
votes
0answers
67 views

VectorScale Explanation

I'm having great difficulty understanding VectorScale. Here are the definitions from the documentation. With the explicit specification ...
2
votes
0answers
37 views

Extract common factor from vector or matrix

I can't believe this hasn't been asked before but I can't find anything. Is there a way to convince Simplify or FullSimplify to ...
2
votes
0answers
86 views

Compile issues, scoping and order of evaluation

I have a few questions about compiling functions, which I think are all related to scoping and order of evaluation. I will illustrate them by a minimal example of the problem I have. I'm sorry for ...
1
vote
0answers
77 views

Manahalobis distance between two vectors

I want to calculate the Mahalanobis distance between two vectors that represent two points. For example: ...
1
vote
0answers
91 views

Solving for vector elements in a function to which the vectors are not passed explicitly

I want to define a function which takes in two integers (indicating the lengths of 2 vectors), and solves a simple set of expressions at a set of points to find all the values in both the vectors. so ...
0
votes
0answers
18 views

Maintain a function quality of an expression

I have written a simple code in Mathematica to put a matrix into a vector. The matrix was a function of a variable n, and I want the new vector to also have this quality as a function of n. ...
0
votes
0answers
32 views

How to solve a multi-vector optimization problem efficiently?

How to efficiently solve a optimization problem which involves multiple vectors? My optimization problem is: $\min_{\bf{K}_{i}} \sum_{i<j}\left[\bf{t}\cdot(\bf{K}_i-\bf{K}_j)\right]^2$, s.t. ...
0
votes
0answers
39 views

Use Solve on a column vector while taking the derivative

I have the vector Y defined below. I would like to solve for $\frac{\partial Y}{\partial cd} = 0$. If I execute Solve[D[Y,cd]==0,cd], Mathematica runs for a long ...
0
votes
0answers
42 views

Get rid of external library dependency

I am trying to generate C code for some functions, which I do not post in full because they are a few hundred lines long. The functions do nothing too fancy: a bunch of dot products, powers and roots. ...
0
votes
0answers
109 views

Gradient from Vectors type

I'm working with Vectors type in Mathematica 9. For this purpose I use the following command: ...
0
votes
0answers
145 views

Any way to fully expand an expression of two operators?

I am looking for a way to expand a complicate expression like the follow (A o B + C o (DxE))*(D o (ExF) - ExA + A) Here o and x are the operator. I want to ...