mathematical-packages

REvolution for R

▼魔方 西西 提交于 2019-12-09 12:55:55
问题 since the latest Ubuntu release (karmic koala), I noticed that the internal R package advertises on start-up the REvolution package. It seems to be a library collection for high-performance matrix calculations. And it seems to really work, apparently. For example on a matrix transposition with REvolution: > system.time(t(matrix(rnorm(10000000),ncol=1000))) user system elapsed 1.280 0.150 1.556 And without REvolution: > system.time(t(matrix(rnorm(10000000),ncol=1000))) user system elapsed 1

Load a mathematica package from within a package

。_饼干妹妹 提交于 2019-12-03 03:54:59
问题 I have more or less the following setting. In ~/path/to/my/packages I have two packages package1.m and package2.m . Each package's outline is, for example, the following: BeginPackage["package1`"] Unprotect@@Names["package1`*"]; ClearAll@@Names["package1`*"]; Begin["`Private`"] vecNorm[vec_?VectorQ]:=Module[{},Return[Sqrt[vec.vec]]]; End[] Protect@@Names["package1`*"]; EndPackage[] Now, my problem is that I want to use vecNorm defined in package1.m in package2.m . How can I load (safely)