-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
https://github.com/crowlogic/arb4j/issues/480
- Loading branch information
Showing
8 changed files
with
92 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/* ---------------------------------------------------------------------------- | ||
* This file was automatically generated by SWIG (https://www.swig.org). | ||
* Version 4.2.0 | ||
* | ||
* Do not make changes to this file unless you know what you are doing - modify | ||
* the SWIG interface file instead. | ||
* ----------------------------------------------------------------------------- */ | ||
|
||
package arb; | ||
|
||
public class AlgebraicNumber { | ||
protected long swigCPtr; | ||
protected boolean swigCMemOwn; | ||
|
||
public AlgebraicNumber(long cPtr, boolean cMemoryOwn) { | ||
swigCMemOwn = cMemoryOwn; | ||
swigCPtr = cPtr; | ||
} | ||
|
||
public static long getCPtr(AlgebraicNumber obj) { | ||
return (obj == null) ? 0 : obj.swigCPtr; | ||
} | ||
|
||
@SuppressWarnings({"deprecation", "removal"}) | ||
protected void finalize() { | ||
delete(); | ||
} | ||
|
||
public synchronized void delete() { | ||
if (swigCPtr != 0) { | ||
if (swigCMemOwn) { | ||
swigCMemOwn = false; | ||
arblibJNI.delete_AlgebraicNumber(swigCPtr); | ||
} | ||
swigCPtr = 0; | ||
} | ||
} | ||
|
||
public void setPoly(IntegerPolynomial value) { | ||
arblibJNI.AlgebraicNumber_poly_set(swigCPtr, this, IntegerPolynomial.getCPtr(value), value); | ||
} | ||
|
||
public IntegerPolynomial getPoly() { | ||
long cPtr = arblibJNI.AlgebraicNumber_poly_get(swigCPtr, this); | ||
return (cPtr == 0) ? null : new IntegerPolynomial(cPtr, false); | ||
} | ||
|
||
public void setEnclosure(Complex value) { | ||
arblibJNI.AlgebraicNumber_enclosure_set(swigCPtr, this, Complex.getCPtr(value), value); | ||
} | ||
|
||
public Complex getEnclosure() { | ||
long cPtr = arblibJNI.AlgebraicNumber_enclosure_get(swigCPtr, this); | ||
return (cPtr == 0) ? null : new Complex(cPtr, false); | ||
} | ||
|
||
public AlgebraicNumber() { | ||
this(arblibJNI.new_AlgebraicNumber(), true); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters