用稀疏矩阵和ojAlgo解析矩阵微分方程 [英] Resolve matrix differential equation with sparse matrix and ojAlgo

查看:145
本文介绍了用稀疏矩阵和ojAlgo解析矩阵微分方程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在用ojAlgo开发Java演化工具,然后尝试解析以下等式:

I am developping a java evolution tool with ojAlgo, and I try to resolve the following equation :

其中A是一个稀疏矩阵(目前该矩阵的尺寸为2000 x 2000,稍后将对其进行缩放),A不是对称的,仅使用实数值.

where A is a sparse matrix (for now the dimension of the matrix is 2000 x 2000, it will be scaled later on), A is not symmetric and use only real values.

我做了一些研究,试图在github wiki/javadoc上找到解决这个方程的方法(使用SparseStore),但是我没有找到解决方法.您能帮我找到我应该使用的方法/类吗? 谢谢

I made some researchs and I tried to find the way to resolve this equation (using SparseStore) on github wiki/javadoc but I didn't find a way to do it. Can you help me find methods/class I should use ? Thank you

推荐答案

ojAlgo中没有直接/特定的方法来求解微分方程.您必须知道如何做(使用笔和纸),然后ojAlgo可以帮助您执行计算.

There is no direct/specific method to solve differential equations in ojAlgo. You have to know how to do it (using pen and paper) then ojAlgo can help you perform the calculations.

这里的主要问题是寻找特征对,对吧?

The main problem here is finding the eigenpairs, right?

    Eigenvalue<Double> evd = Eigenvalue.PRIMITIVE.make(matrix);

    evd.decompose(matrix);

    Array1D<ComplexNumber> values = evd.getEigenvalues();
    MatrixStore<ComplexNumber> vectors = evd.getEigenvectors();
    Eigenpair pair = evd.getEigenpair(0); // One of the pairs

这篇关于用稀疏矩阵和ojAlgo解析矩阵微分方程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆