Linked Questions

8 votes
1 answer
299 views

Map vs listable [duplicate]

What's the difference between setting a function's attribute as Listable and using Map? I understand that ...
Al Guy's user avatar
  • 1,610
52 votes
2 answers
7k views

Scan vs. Map vs. Apply

I cannot understand the difference between Apply, Scan, and Map. I have tried to play with ...
MOON's user avatar
  • 3,854
7 votes
2 answers
312 views

Built in function without Attributes Listable works as if it has Attributes Listable

Can Built-in function works as if it has Attributes Listable even if it doesn't have that ...
Basheer Algohi's user avatar
11 votes
2 answers
209 views

How to make a function with two patterns listable?

Suppose that I have a function that has two patterns: disksConstantRadius[radius_][points_] := Disk[#, radius] & /@ points (noting that this would be better---...
Craig Carter's user avatar
  • 4,250
6 votes
1 answer
470 views

Listable vs Parallel

Are listability and being parallelized the same? In other words, Does parallelizing a listable function which has already a list as of its argument make the computation faster? In the documentation ...
MOON's user avatar
  • 3,854
14 votes
2 answers
279 views

How can one write a robust ListableQ function?

I would like to have a test that determines if a particular function is Listable. In the case of Symbols this is merely a matter of checking Attributes. ...
Mr.Wizard's user avatar
  • 271k
5 votes
2 answers
898 views

Compile a listable function to be applied over list of lists

Consider a simple function g[x_,y_,z_] := x + y + z; (indeed, any multivariate function g will illustrate the same thing). ...
user32416's user avatar
  • 1,203
7 votes
1 answer
328 views

Using the list as the argument of the pure function

I know some function is listable, such that Sin@{1,2,3,4,5} gives {Sin[1], Sin[2], Sin[3], Sin[4], Sin[5]} By reading some ...
Ice0cean's user avatar
  • 813
6 votes
1 answer
162 views

Is it possible to make listable Experimental`NumericalFunction?

I have been playing a bit with the undocumented function Experimental`CreateNumericalFunction and I wanted to know if somebody found a way to make generated ...
user12588's user avatar
  • 585
5 votes
1 answer
222 views

How to understand the difference between Sqrt and Log after ClearAll them

I came across this post, here I change the last line of the code Unprotect[Sqrt]; Sqrt[x_] = "blahblah"; Protect[Sqrt]; Sqrt[2] "blahblah" ...
luyuwuli's user avatar
  • 2,804
4 votes
1 answer
488 views

Listable on first level [duplicate]

I have some function which take List as input. f[l_List]:=someActions[l] I need apply this function to a list of lists. Now I ...
molekyla777's user avatar
  • 2,888
3 votes
0 answers
269 views

Making pure functions listable [closed]

I have a very large number of functions defined in the following manner: f[1] = Function[{x}, x^2]; f[2] = Function[{x}, x^3]; I would like to make all of these ...
user12588's user avatar
  • 585