Merge branch 'master' of https://github.com/Cavallium/WarpPI
This commit is contained in:
commit
6cea02af81
2
.gitignore
vendored
2
.gitignore
vendored
@ -5,6 +5,7 @@
|
|||||||
|
|
||||||
# Package Files #
|
# Package Files #
|
||||||
!/target/*.jar
|
!/target/*.jar
|
||||||
|
!/libs/*.jar
|
||||||
*.war
|
*.war
|
||||||
*.jar
|
*.jar
|
||||||
*.ear
|
*.ear
|
||||||
@ -20,6 +21,7 @@ VBO_Example.java
|
|||||||
|
|
||||||
/target/
|
/target/
|
||||||
!/target/*.jar
|
!/target/*.jar
|
||||||
|
!libs/**/*.jar
|
||||||
/backups/
|
/backups/
|
||||||
/Resources_and_Videos/
|
/Resources_and_Videos/
|
||||||
|
|
||||||
|
13
.idea/compiler.xml
Normal file
13
.idea/compiler.xml
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="CompilerConfiguration">
|
||||||
|
<annotationProcessing>
|
||||||
|
<profile name="Maven default annotation processors profile" enabled="true">
|
||||||
|
<sourceOutputDir name="target/generated-sources/annotations" />
|
||||||
|
<sourceTestOutputDir name="target/generated-test-sources/test-annotations" />
|
||||||
|
<outputRelativeToContentRoot value="true" />
|
||||||
|
<module name="warppi-calculator" />
|
||||||
|
</profile>
|
||||||
|
</annotationProcessing>
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/encodings.xml
Normal file
6
.idea/encodings.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="Encoding">
|
||||||
|
<file url="file://$PROJECT_DIR$" charset="UTF-8" />
|
||||||
|
</component>
|
||||||
|
</project>
|
14
.idea/misc.xml
Normal file
14
.idea/misc.xml
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="ExternalStorageConfigurationManager" enabled="true" />
|
||||||
|
<component name="MavenProjectsManager">
|
||||||
|
<option name="originalFiles">
|
||||||
|
<list>
|
||||||
|
<option value="$PROJECT_DIR$/pom.xml" />
|
||||||
|
</list>
|
||||||
|
</option>
|
||||||
|
</component>
|
||||||
|
<component name="ProjectRootManager" version="2" languageLevel="JDK_1_8" project-jdk-name="1.8" project-jdk-type="JavaSDK">
|
||||||
|
<output url="file://$PROJECT_DIR$/out" />
|
||||||
|
</component>
|
||||||
|
</project>
|
6
.idea/vcs.xml
Normal file
6
.idea/vcs.xml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project version="4">
|
||||||
|
<component name="VcsDirectoryMappings">
|
||||||
|
<mapping directory="" vcs="Git" />
|
||||||
|
</component>
|
||||||
|
</project>
|
20
pom.xml
20
pom.xml
@ -14,6 +14,7 @@
|
|||||||
<src.dir>src/main/java</src.dir>
|
<src.dir>src/main/java</src.dir>
|
||||||
<src.dir2>src/main/java</src.dir2>
|
<src.dir2>src/main/java</src.dir2>
|
||||||
<src.resdir>src/main/resources</src.resdir>
|
<src.resdir>src/main/resources</src.resdir>
|
||||||
|
<buildprops.exclude1>veryverylongandparticularpath/abcd</buildprops.exclude1>
|
||||||
</properties>
|
</properties>
|
||||||
<repositories>
|
<repositories>
|
||||||
<repository>
|
<repository>
|
||||||
@ -45,6 +46,19 @@
|
|||||||
</pluginRepository>
|
</pluginRepository>
|
||||||
</pluginRepositories>
|
</pluginRepositories>
|
||||||
<profiles>
|
<profiles>
|
||||||
|
<profile>
|
||||||
|
<id>aarch64</id>
|
||||||
|
<activation>
|
||||||
|
<!--<os>
|
||||||
|
<family>Linux</family>
|
||||||
|
<arch>aarch64</arch>
|
||||||
|
</os>-->
|
||||||
|
<activeByDefault>false</activeByDefault>
|
||||||
|
</activation>
|
||||||
|
<properties>
|
||||||
|
<buildprops.exclude1>org/warp/picalculator/gui/graphicengine/gpu/*</buildprops.exclude1>
|
||||||
|
</properties>
|
||||||
|
</profile>
|
||||||
<profile>
|
<profile>
|
||||||
<id>jarprofile</id>
|
<id>jarprofile</id>
|
||||||
<properties>
|
<properties>
|
||||||
@ -94,12 +108,12 @@
|
|||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<version>2.3.2</version>
|
<version>2.3.2</version>
|
||||||
<configuration>
|
<configuration>
|
||||||
<excludes>
|
|
||||||
<exclude>org/warp/picalculator/gui/graphicengine/html/*</exclude>
|
|
||||||
</excludes>
|
|
||||||
<source>1.8</source>
|
<source>1.8</source>
|
||||||
<target>1.8</target>
|
<target>1.8</target>
|
||||||
<encoding>UTF-8</encoding>
|
<encoding>UTF-8</encoding>
|
||||||
|
<excludes>
|
||||||
|
<exclude>${buildprops.exclude1}</exclude>
|
||||||
|
</excludes>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
@ -1,13 +1,18 @@
|
|||||||
package org.warp.picalculator.deps;
|
package org.warp.picalculator.deps;
|
||||||
|
|
||||||
import org.warp.picalculator.ClassUtils;
|
import org.warp.picalculator.ClassUtils;
|
||||||
|
import org.warp.picalculator.StaticVars;
|
||||||
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
import org.warp.picalculator.gui.graphicengine.GraphicEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.cpu.CPUEngine;
|
import org.warp.picalculator.gui.graphicengine.cpu.CPUEngine;
|
||||||
import org.warp.picalculator.gui.graphicengine.framebuffer.FBEngine;
|
import org.warp.picalculator.gui.graphicengine.framebuffer.FBEngine;
|
||||||
|
|
||||||
public class DEngine {
|
public class DEngine {
|
||||||
public static GraphicEngine newGPUEngine() {
|
public static GraphicEngine newGPUEngine() {
|
||||||
return new org.warp.picalculator.gui.graphicengine.gpu.GPUEngine();
|
try {
|
||||||
|
return (GraphicEngine) ClassUtils.newClassInstance("org.warp.picalculator.gui.graphicengine.gpu.GPUEngine");
|
||||||
|
} catch (NullPointerException ex) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
public static GraphicEngine newHeadless24bitEngine() {
|
public static GraphicEngine newHeadless24bitEngine() {
|
||||||
return new org.warp.picalculator.gui.graphicengine.headless24bit.Headless24bitEngine();
|
return new org.warp.picalculator.gui.graphicengine.headless24bit.Headless24bitEngine();
|
||||||
|
@ -25,11 +25,10 @@ import java.util.Map;
|
|||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
import java.util.stream.Stream;
|
import java.util.stream.Stream;
|
||||||
|
|
||||||
|
import org.apache.commons.io.IOUtils;
|
||||||
import org.warp.picalculator.ClassUtils;
|
import org.warp.picalculator.ClassUtils;
|
||||||
import org.warp.picalculator.Main;
|
import org.warp.picalculator.Main;
|
||||||
|
|
||||||
import com.jogamp.common.util.IOUtil;
|
|
||||||
|
|
||||||
public class StorageUtils {
|
public class StorageUtils {
|
||||||
public static final boolean exists(Path f) {
|
public static final boolean exists(Path f) {
|
||||||
return Files.exists(f);
|
return Files.exists(f);
|
||||||
@ -77,7 +76,7 @@ public class StorageUtils {
|
|||||||
tempFile.deleteOnExit();
|
tempFile.deleteOnExit();
|
||||||
try (FileOutputStream out = new FileOutputStream(tempFile))
|
try (FileOutputStream out = new FileOutputStream(tempFile))
|
||||||
{
|
{
|
||||||
IOUtil.copyStream2Stream(is, out, (int) tempFile.length());
|
IOUtils.copy(is, out, (int) tempFile.length());
|
||||||
}
|
}
|
||||||
resourcesCache.put(string, tempFile);
|
resourcesCache.put(string, tempFile);
|
||||||
|
|
||||||
|
@ -153,7 +153,7 @@ public class BigComplex {
|
|||||||
* The branch is chosen such that the imaginary part of the result
|
* The branch is chosen such that the imaginary part of the result
|
||||||
* has the
|
* has the
|
||||||
* same sign as the imaginary part of this.
|
* same sign as the imaginary part of this.
|
||||||
* @see Tim Ahrendt, <a href="http://dx.doi.org/10.1145/236869.236924">Fast
|
* @see Tim Ahrendt, <a href="https://doi.org/10.1145/236869.236924">Fast
|
||||||
* High-precision computation of complex square roots</a>,
|
* High-precision computation of complex square roots</a>,
|
||||||
* ISSAC 1996 p142-149.
|
* ISSAC 1996 p142-149.
|
||||||
* @since 2008-10-27
|
* @since 2008-10-27
|
||||||
|
@ -580,7 +580,7 @@ public class BigIntegerMath {
|
|||||||
* @since 2009-08-06
|
* @since 2009-08-06
|
||||||
* @author Richard J. Mathar
|
* @author Richard J. Mathar
|
||||||
* @throws Error
|
* @throws Error
|
||||||
* @see <a href="http://dx.doi.org/10.1080/01630568908816313">P. L. Butzer
|
* @see <a href="https://doi.org/10.1080/01630568908816313">P. L. Butzer
|
||||||
* et al, Num. Funct. Anal. Opt. 10 (5)( 1989) 419-488</a>
|
* et al, Num. Funct. Anal. Opt. 10 (5)( 1989) 419-488</a>
|
||||||
*/
|
*/
|
||||||
static public Rational centrlFactNumt(int n, int k) throws Error {
|
static public Rational centrlFactNumt(int n, int k) throws Error {
|
||||||
@ -627,7 +627,7 @@ public class BigIntegerMath {
|
|||||||
* @return T(n,k)
|
* @return T(n,k)
|
||||||
* @since 2009-08-06
|
* @since 2009-08-06
|
||||||
* @author Richard J. Mathar
|
* @author Richard J. Mathar
|
||||||
* @see <a href="http://dx.doi.org/10.1080/01630568908816313">P. L. Butzer
|
* @see <a href="https://doi.org/10.1080/01630568908816313">P. L. Butzer
|
||||||
* et al, Num. Funct. Anal. Opt. 10 (5)( 1989) 419-488</a>
|
* et al, Num. Funct. Anal. Opt. 10 (5)( 1989) 419-488</a>
|
||||||
*/
|
*/
|
||||||
static public Rational centrlFactNumT(int n, int k) {
|
static public Rational centrlFactNumT(int n, int k) {
|
||||||
|
@ -137,7 +137,7 @@ public class Wigner3j {
|
|||||||
* separated. Only as many as announced by the m1 parameter are
|
* separated. Only as many as announced by the m1 parameter are
|
||||||
* used; trailing numbers are ignored.
|
* used; trailing numbers are ignored.
|
||||||
* @see A. Bar-Shalom and M. Klapisch,
|
* @see A. Bar-Shalom and M. Klapisch,
|
||||||
* <a href="http://dx.doi.org/10.1016/0010-4655(88)90192-0">NJGRAF...
|
* <a href="https://doi.org/10.1016/0010-4655(88)90192-0">NJGRAF...
|
||||||
* </a>, Comp. Phys Comm. 50 (3) (1988) 375
|
* </a>, Comp. Phys Comm. 50 (3) (1988) 375
|
||||||
* @since 2011-02-13
|
* @since 2011-02-13
|
||||||
* @since 2012-02-15 Upgraded return value to BigSurdVec
|
* @since 2012-02-15 Upgraded return value to BigSurdVec
|
||||||
|
Loading…
Reference in New Issue
Block a user