Package stallone.api.doubles

Examples of stallone.api.doubles.IDoubleArray.viewBlock()


                    X.set(i, j, X.get(i, j) - a);
                }
            }
        }

        return X.viewBlock(0, 0, n, b_cols);
    }

    /**
     * @param   a
     * @param   b
View Full Code Here


            if (arg.hasCommand("left"))
                alg.transpose(T);
            int n = arg.getIntArgument("eigenvectors", 1);

            IDoubleArray EV = alg.evd(T).R();
            EV = EV.viewBlock(0, EV.rows(), 0, n);
            doubles.print(EV, " ", "\n");
        }

    }
}
View Full Code Here

        if (MarkovModel.util.isTransitionMatrix(M))
        {
            IEigenvalueDecomposition evd = Algebra.util.evd(M,nstates);
            evec = evd.getRightEigenvectorMatrix();
            evec = evec.viewBlock(0,0,M.rows(),nstates);
        }
        else
        {
            if (evec.columns() < nstates)
                throw(new IllegalArgumentException("Attempting to create PCCA decomposition into "+nstates+" states."+
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.