Fork me on GitHub

轻量级Java矩阵运算库

[Code]

Construction

  • create Matrix from double array
  • create Matrix from List<? extends Number>
  • create Matrix from Matrix
  • ones,onesLike,zeros,zerosLike,random
  • diag

Basic

  • shape,copy,get,set,checkMatrixDimensions,getArray,print

Operation

  • add,addi,sub,subi,mul,muli,mmul,div,divi
  • norm1,norm2,squareDistance
  • sum,max,min,abs,concat
  • transpose
  • reshape
  • sum by dim
  • invert