フィルターのクリア

I am trying to use sparseinv (sparseinv​,sparseinv​_install, parseinv_test) but it gave me an error.

5 ビュー (過去 30 日間)
I am trying to use sparseinv (sparseinv,sparseinv_install, parseinv_test) but it gave me an error. Any help would be much appreciated.
=======================
Undefined function or variable 'sparseinv_mex'.
Error in sparseinv (line 59)
[Z takflops] = sparseinv_mex (L, d, U', Zpattern) ;
===========================
  1 件のコメント
James Tursa
James Tursa 2018 年 3 月 7 日
Did you run sparsinv_install to compile the mex routine? The error message states that it cannot find the compiled mex routine.

サインインしてコメントする。

回答 (3 件)

Mojgan Soltan
Mojgan Soltan 2018 年 3 月 7 日
編集済み: Walter Roberson 2018 年 3 月 7 日
Yes, after I run it gave me this error
=========================
>> sparseinv_install
Error: File: sparseinv_install.m Line: 1 Column: 50
Unexpected MATLAB operator.
=============================
  5 件のコメント
Walter Roberson
Walter Roberson 2018 年 3 月 7 日
Odd, when I look at your copy of sparseinv_install I can see that it does not have 50 characters on line 1 either.
What shows up for
which -all sparseinv_install
Mojgan Soltan
Mojgan Soltan 2018 年 3 月 7 日
編集済み: Mojgan Soltan 2018 年 3 月 7 日
Yes, you are right it is odd. anyway I am going to delete them and get them again. is there any other code which I can replace with this (Sparse inversion) if the previous one not works in mine.

サインインしてコメントする。


Mojgan Soltan
Mojgan Soltan 2018 年 3 月 7 日
Yes, that exactly I got it from.

Mojgan Soltan
Mojgan Soltan 2018 年 3 月 7 日
編集済み: Walter Roberson 2018 年 3 月 7 日
I put all 3 of them in one directory
===========================================
>> dbtype sparseinv_install
1 function sparseinv_install
2 %SPARSEINV_INSTALL compiles and installs the sparseinv function.
3 % Your current working directory must be the sparseinv directory for this
4 % function to work.
5 %
6 % Example:
7 % sparseinv_install
8 %
9 % See also sparseinv, sparseinv_test
10
11 % Copyright 2011, Timothy A. Davis, http://www.suitesparse.com
12
13 is64 = ~isempty (strfind (computer, '64')) ;
14 if (is64)
15 fprintf ('Compiling sparseinv (64-bit)\n') ;
16 mex -largeArrayDims sparseinv_mex.c sparseinv.c
17 else
18 fprintf ('Compiling sparseinv (32-bit)\n') ;
19 mex sparseinv_mex.c sparseinv.c
20 end
21 addpath (pwd)
=============================================
  1 件のコメント
Walter Roberson
Walter Roberson 2018 年 3 月 7 日
Please do not start a new Answer to add a response. You should click on "Comment on this Answer" instead.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

製品

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by