import myMatriks as M #importing myMatriks library
# program latihan matriks 
# part 1

""" ARRAY INDEX START AT 0 """ # reminder
Data = [
  [3, 6, -12, 16, 20],
  [-2, 7, 4, 6, -3],
  [1, 5, -6, 12, 4],
  [-11, 4, 10, 15, 5]
] 

A = M.matriks(val = Data) #objek matriks
print("matriks A : ", A.Array)
print("Ordo A : ", A.ordo())
print("diagonal A [main][secondary]: ", A.diagonal())
print(A.get_elemen_baris_ke(1))
print(A.get_elemen_kolom_ke(2))

print("\n")

B = M.matriks(A.transpose())
print("matriks B = A transpose : ", B.Array)
print("Ordo B : ", B.ordo())

print("\n")

C = M.matriks(B.transpose())
print("Matriks C = B Transpose",C.Array)
print("Ordo C : ", C.ordo())
