gsMatrix
The methods in gsMatrix are an interface to G+Smo's linear algebra, supported by Eigen.
Function Documentation
Gismo.asMatrix — MethodReturns the matrix as a Julia matrix.
Arguments
object::EigenMatrix: the matrix
Gismo.asMatrixInt — MethodReturns the matrix as a Julia matrix.
Arguments
object::EigenMatrixInt: the matrix
Gismo.asVector — MethodReturns the matrix as a Julia vector.
Arguments
object::EigenMatrix: the matrix
Gismo.asVectorInt — MethodReturns the matrix as a Julia vector.
Arguments
object::EigenMatrixInt: the matrix
Gismo.cols — MethodReturns the number of columns in the matrix.
Arguments
object::EigenMatrixInt: the matrix
Examples
m = EigenMatrixInt(3,3)
print(Gismo.cols(m))
# output
3Gismo.cols — MethodReturns the number of columns in the matrix.
Arguments
object::EigenMatrix: the matrix
Examples
m = EigenMatrix(3,3)
print(Gismo.cols(m))
# output
3Gismo.data — MethodReturns a pointer to the data of the matrix.
Arguments
object::EigenMatrixInt: the matrix
Gismo.data — MethodReturns a pointer to the data of the matrix.
Arguments
object::EigenMatrix: the matrix
Gismo.rows — MethodReturns the number of rows in the matrix.
Arguments
object::EigenMatrixInt: the matrix
Examples
m = EigenMatrixInt(3,3)
print(Gismo.rows(m))
# output
3Gismo.rows — MethodReturns the number of rows in the matrix.
Arguments
object::EigenMatrix: the matrix
Examples
m = EigenMatrix(3,3)
print(Gismo.rows(m))
# output
3Gismo.setZero! — MethodSets all the elements of the matrix to zero.
Arguments
object::EigenMatrixInt: the matrix
Gismo.setZero! — MethodSets all the elements of the matrix to zero.
Arguments
object::EigenMatrix: the matrix
Gismo.toMatrix — MethodReturns the matrix as a Julia matrix (transfers ownership).
Arguments
object::EigenMatrix: the matrix
Gismo.toMatrixInt — MethodReturns the matrix as a Julia matrix (transfers ownership).
Arguments
object::EigenMatrixInt: the matrix
Gismo.toVector — MethodReturns the matrix as a Julia vector (transfers ownership).
Arguments
object::EigenMatrix: the matrix
Gismo.toVectorInt — MethodReturns the matrix as a Julia vector (transfers ownership).
Arguments
object::EigenMatrixInt: the matrix
Gismo.EigenMatrix — TypeEigenMatrix()Creates an empty matrix.
Example
m = EigenMatrix()
# output