Examples of Scs


Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

     * @param Prob
     *            problem
     * @return true if successful, false on error
     */
    public static boolean demo3(Sproblem Prob) {
        Scs A, C, W = null, WW, WT, E = null, W2;
        int n, k, Li[], Lp[], Wi[], Wp[], p1, p2, p[] = null;
        boolean ok;
        float b[], x[], resid[], y[] = null, Lx[], Wx[], s, t, t1;
        Scss S = null;
        Scsn N = null;
View Full Code Here

Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

* @author Piotr Wendykier (piotr.wendykier@gmail.com)
*
*/
public class Scs_demo1 {
    public static void main(String[] args) {
        Scs T = null, A, Eye, AT, C, S;
        int i, m;
        if (args.length == 0) {
            throw new IllegalArgumentException("Usage: java edu.emory.mathcs.csparsej.tfloat.semo.Scs_demo1 fileName");
        }
        T = Scs_load.cs_load(args[0]); /* load triplet matrix T from file */
 
View Full Code Here

Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

    public static Scs cs_add(Scs A, Scs B, float alpha, float beta) {
        int p, j, nz = 0, anz;
        int Cp[], Ci[], Bp[], m, n, bnz, w[];
        float x[], Bx[], Cx[];
        boolean values;
        Scs C;
        if (!Scs_util.CS_CSC(A) || !Scs_util.CS_CSC(B))
            return null; /* check inputs */
        if (A.m != B.m || A.n != B.n)
            return null;
        m = A.m;
View Full Code Here

Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

     */
    public static Scs cs_multiply(Scs A, Scs B) {
        int p, j, nz = 0, anz, Cp[], Ci[], Bp[], m, n, bnz, w[], Bi[];
        float x[], Bx[], Cx[];
        boolean values;
        Scs C;
        if (!Scs_util.CS_CSC(A) || !Scs_util.CS_CSC(B))
            return (null); /* check inputs */
        if (A.n != B.m)
            return (null);
        m = A.m;
View Full Code Here

Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

     * @return T if successful, null on error
     */
    public static Scs cs_load(String fileName) {
        int i, j;
        float x;
        Scs T;
        BufferedReader in;
        try {
            in = new BufferedReader(new FileReader(fileName));
        } catch (FileNotFoundException e1) {
            return (null);
View Full Code Here

Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

     * @return C = PAQ, null on error
     */
    public static Scs cs_permute(Scs A, int[] pinv, int[] q, boolean values) {
        int t, j, k, nz = 0, m, n, Ap[], Ai[], Cp[], Ci[];
        float Cx[], Ax[];
        Scs C;
        if (!Scs_util.CS_CSC(A))
            return (null); /* check inputs */
        m = A.m;
        n = A.n;
        Ap = A.p;
View Full Code Here

Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

    public static int[] cs_counts(Scs A, int[] parent, int[] post, boolean ata) {
        int i, j, k, n, m, J, s, p, q, ATp[], ATi[], maxfirst[], prevleaf[], ancestor[], colcount[], w[], first[], delta[];
        int[] head = null, next = null;
        int[] jleaf = new int[1];
        int head_offset = 0, next_offset = 0;
        Scs AT;
        if (!Scs_util.CS_CSC(A) || parent == null || post == null)
            return (null); /* check inputs */
        m = A.m;
        n = A.n;
        s = 4 * n + (ata ? (n + m + 1) : 0);
View Full Code Here

Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

     * @return C = PAP', null on error
     */
    public static Scs cs_symperm(Scs A, int[] pinv, boolean values) {
        int i, j, p, q, i2, j2, n, Ap[], Ai[], Cp[], Ci[], w[];
        float Cx[], Ax[];
        Scs C;
        if (!Scs_util.CS_CSC(A))
            return (null); /* check inputs */
        n = A.n;
        Ap = A.p;
        Ai = A.i;
View Full Code Here

Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

     * @param tol
     *            partial pivoting threshold (1 for partial pivoting)
     * @return numeric LU factorization, null on error
     */
    public static Scsn cs_lu(Scs A, Scss S, float tol) {
        Scs L, U;
        Scsn N;
        float pivot, Lx[], Ux[], x[], a, t;
        int Lp[], Li[], Up[], Ui[], pinv[], xi[], q[], n, ipiv, k, top, p, i, col, lnz, unz;
        if (!Scs_util.CS_CSC(A) || S == null)
            return (null); /* check inputs */
 
View Full Code Here

Examples of edu.emory.mathcs.csparsej.tfloat.Scs_common.Scs

     */
    public static boolean cs_qrsol(int order, Scs A, float[] b) {
        float x[];
        Scss S;
        Scsn N;
        Scs AT = null;
        int k, m, n;
        boolean ok;
        if (!Scs_util.CS_CSC(A) || b == null)
            return (false); /* check inputs */
        n = A.n;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.