类的使用
org.meteoinfo.ndarray.MAVector
-
使用MAVector的程序包 程序包 说明 org.meteoinfo.ndarray Multidimensional arrays of primitives and objects with data stored in memory. -
-
org.meteoinfo.ndarray中MAVector的使用
返回MAVector的org.meteoinfo.ndarray中的方法 修饰符和类型 方法 说明 MAVectorMAMatrix. column(int j)Get the jth column, return as a MAVector: same backing store.MAVectorMAVector. copy()Create a new MAVector that is the same as this one, with a copy of the backing store.MAVectorMAMatrix. dot(MAVector v)Dot product of matrix and vector: return M dot vMAVectorMAMatrix. row(int i)Get the ith row, return as a MAVector: same backing store.参数类型为MAVector的org.meteoinfo.ndarray中的方法 修饰符和类型 方法 说明 doubleMAVector. cos(MAVector v)Cos between two vectors = dot(v) / norm() * norm(v)MAVectorMAMatrix. dot(MAVector v)Dot product of matrix and vector: return M dot vdoubleMAVector. dot(MAVector v)Dot product of 2 vectorsvoidMAMatrix. postMultiplyDiagonal(MAVector diag)Matrix multiply by a diagonal matrix, store result in this: this = this * diagvoidMAMatrix. preMultiplyDiagonal(MAVector diag)Matrix multiply by a diagonal matrix, store result in this: this = diag * this
-