File: ldlmain2.m

package info (click to toggle)
ufsparse 1.2-7
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 27,536 kB
  • ctags: 5,848
  • sloc: ansic: 89,328; makefile: 4,721; fortran: 1,991; csh: 207; sed: 162; awk: 33; java: 30; sh: 8
file content (21 lines) | stat: -rw-r--r-- 517 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
% LDLMAIN2: compile and run the LDLMAIN program (both with and without AMD)

help ldlmain2
input ('Hit enter to compile and run ldlmain (without AMD): ') ;
try
    mex ldlmain.c ldl.c
    ldlmain
catch
    fprintf ('ldlmain mexFunction failed to compile\n') ;
end

if (~ispc)
    input ('Hit enter to compile and run ldlmain (with AMD): ') ;
    try
	mex -output ldlamd -I../AMD/Include -L../AMD/Lib -DUSE_AMD ldlmain.c -lamd ldl.c
	ldlamd
    catch
	fprintf ('ldlamd mexFunction failed to compile\n') ;
    end
end