Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Favorites infavorites:mine
infavorites:1234
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with Search options user 91

Mathematical vectors, operations on vectors and vectorized programming.

9
votes
Define the inner product modulo $2$: orthogonalize[a_] := Mod[Orthogonalize[a, Mod[#1.#2, 2] &], 2] Example: (m = Union[orthogonalize[RandomInteger[{0, 1}, {500, 64}]] ]) // ArrayPlot Check or …
answered Aug 14 '12 by whuber
7
votes
It helps to do a little analysis to simplify the problem. This expression is integrating over a line through $\mathbf{b}$ in the direction of $\mathbf{a}$. By choosing a suitable coordinate system y …
answered Apr 9 '12 by whuber
10
votes
First, if you don't know the degree you can compute it: m = {{15 + a^5, a + 5 a^2}, {a - 5 a^2, 2 c}}; degree = Max[Flatten[Exponent[#, {a}] & /@ Flatten[m]]] (I have increased the degree of m to …
answered Jun 29 '12 by whuber
44
votes
distance image. Almost all the work is done here (and it's fast): i = DistanceTransform[g] // ImageAdjust // ImageData; We need a little more precomputation of the final boundaries. Rasterizing a vector
answered Apr 5 '12 by whuber