Matrix (dense) calculations using ejml
Code: "matrix_ejml_2.py". Programming language: Python
DMelt Version 1. Last modified: 05/09/2015. License: Pro
https://datamelt.org/code/cache/matrix_ejml_2_202.py
To run this script using the DMelt IDE,
copy the above URL link to the menu [File]→[Read script from URL] of the DMelt IDE.
from org.ejml.data import DenseMatrix64F
from org.ejml.ops import MatrixFeatures
A=DenseMatrix64F(2,2)
A.set(0,1,2)
A.set(1,0,-2.0000000001)
A.print()
if MatrixFeatures.isSkewSymmetric(A,1e-8):
print "Is skew symmetric!"
else:
print "Should be skew symmetric!"
You see the box below because you did not login.