File tree Expand file tree Collapse file tree 11 files changed +292
-0
lines changed Expand file tree Collapse file tree 11 files changed +292
-0
lines changed Original file line number Diff line number Diff line change
1
+ eclipse.preferences.version =1
2
+ org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode =enabled
3
+ org.eclipse.jdt.core.compiler.codegen.targetPlatform =1.7
4
+ org.eclipse.jdt.core.compiler.codegen.unusedLocal =preserve
5
+ org.eclipse.jdt.core.compiler.compliance =1.7
6
+ org.eclipse.jdt.core.compiler.debug.lineNumber =generate
7
+ org.eclipse.jdt.core.compiler.debug.localVariable =generate
8
+ org.eclipse.jdt.core.compiler.debug.sourceFile =generate
9
+ org.eclipse.jdt.core.compiler.problem.assertIdentifier =error
10
+ org.eclipse.jdt.core.compiler.problem.enumIdentifier =error
11
+ org.eclipse.jdt.core.compiler.source =1.7
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <classpath >
3
+ <classpathentry kind =" src" path =" src" />
4
+ <classpathentry kind =" con" path =" org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7" />
5
+ <classpathentry kind =" output" path =" bin" />
6
+ </classpath >
Original file line number Diff line number Diff line change
1
+ <?xml version =" 1.0" encoding =" UTF-8" ?>
2
+ <projectDescription >
3
+ <name >LabTest</name >
4
+ <comment ></comment >
5
+ <projects >
6
+ </projects >
7
+ <buildSpec >
8
+ <buildCommand >
9
+ <name >org.eclipse.jdt.core.javabuilder</name >
10
+ <arguments >
11
+ </arguments >
12
+ </buildCommand >
13
+ </buildSpec >
14
+ <natures >
15
+ <nature >org.eclipse.jdt.core.javanature</nature >
16
+ </natures >
17
+ </projectDescription >
Original file line number Diff line number Diff line change
1
+
2
+ public interface Matrix {
3
+ public VectorMyclass addition ();
4
+ public VectorMyclass mult ();
5
+ public VectorMyclass dim ();
6
+ public VectorMyclass transpose ();
7
+ public VectorMyclass inverse ();
8
+
9
+ }
Original file line number Diff line number Diff line change
1
+ import javax .print .attribute .Size2DSyntax ;
2
+
3
+ public class MatrixMyclass implements Matrix {
4
+ public int size ;
5
+ public static String MatrixArrayX [][];
6
+ public static String MatrixArrayY [][];
7
+ /**
8
+ * Constructor
9
+ */
10
+ public MatrixMyclass (int n ) {
11
+ size = n ;
12
+ MatrixArrayX = new String [size ][size ] ;
13
+ MatrixArrayY = new String [size ][size ];
14
+ }
15
+
16
+ public VectorMyclass store_MatrixX_MatrixY (int i , int j ){
17
+ VectorMyclass v = new VectorMyclass (2 );
18
+ int x = v .getX (1 );
19
+ return v ;
20
+ }
21
+
22
+ @ Override
23
+ public VectorMyclass addition () {
24
+ // TODO Auto-generated method stub
25
+ return null ;
26
+ }
27
+ @ Override
28
+ public VectorMyclass mult () {
29
+ // TODO Auto-generated method stub
30
+ return null ;
31
+ }
32
+ @ Override
33
+ public VectorMyclass dim () {
34
+ // TODO Auto-generated method stub
35
+ return null ;
36
+ }
37
+ @ Override
38
+ public VectorMyclass transpose () {
39
+ // TODO Auto-generated method stub
40
+ return null ;
41
+ }
42
+ @ Override
43
+ public VectorMyclass inverse () {
44
+ // TODO Auto-generated method stub
45
+ return null ;
46
+ }
47
+ /**
48
+ * main Function
49
+ */
50
+ public static void main (String [] args ) {
51
+ // TODO Auto-generated method stub
52
+
53
+ }
54
+
55
+ public static void prln (Object object ){
56
+ System .out .println (object );
57
+ }
58
+
59
+
60
+
61
+ }
Original file line number Diff line number Diff line change
1
+
2
+ public interface Vector {
3
+ public void product (int i ,int j );
4
+ public double magnitude (int i );
5
+ public double theta (int i );
6
+ public int len ();
7
+ public void scalarMult (int a , int i );
8
+ public void showVector ();
9
+
10
+ }
You can’t perform that action at this time.
0 commit comments