13

I don't know why ParallelTable is so slow. But I think that an answer to this would not really help you (things can be like they are for quite stupid reasons...). What will help you more in the future is this: It is generally not a good idea to use Table or ParallelTable for linear algebra or big data processing. Remember: Mathematica is an interpreted ...


5

If it is only about the sums of negative entries, then yes. This is how we can do it without even building the tensor/Kronecker products: M = RandomReal[{-1, 1}, {3, 3}]; ClearAll[sumPositive]; ClearAll[sumNegative]; sumPositive[1] = Total[Ramp[ M], TensorRank[M]]; sumNegative[1] = Total[Ramp[-M], TensorRank[M]]; sumNegative[n_] := sumNegative[n] = Plus[ ...


1

pts = RandomReal[1, {1000, 2}]; Graphics[Point[pts]] Graphics[GeometricTransformation[Point[pts], ShearingTransform[Pi/4, {1, 0}, {0, 1}]]]


1

net = NetChain[{LinearLayer[200], ElementwiseLayer[LogisticSigmoid], LinearLayer[200], ElementwiseLayer[LogisticSigmoid], LinearLayer[1]}, "Input" -> 40, "Output" -> NetDecoder["Scalar"]] Information[net, "SummaryGraphic"] This can also be produced more concisely: net = NetChain[{200, LogisticSigmoid, ...


Only top voted, non community-wiki answers of a minimum length are eligible