gsMatrix

The methods in gsMatrix are an interface to G+Smo's linear algebra, supported by Eigen.

Function Documentation

Gismo.asMatrix — Method

Returns the matrix as a Julia matrix.

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.asVector — Method

Returns the matrix as a Julia vector.

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.cols — Method

Returns the number of columns in the matrix.

Arguments

  • object::EigenMatrixInt: the matrix

Examples

m = EigenMatrixInt(3,3)
print(Gismo.cols(m))
# output
3
source
Gismo.cols — Method

Returns the number of columns in the matrix.

Arguments

  • object::EigenMatrix: the matrix

Examples

m = EigenMatrix(3,3)
print(Gismo.cols(m))
# output
3
source
Gismo.data — Method

Returns a pointer to the data of the matrix.

Arguments

  • object::EigenMatrixInt: the matrix
source
Gismo.data — Method

Returns a pointer to the data of the matrix.

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.rows — Method

Returns the number of rows in the matrix.

Arguments

  • object::EigenMatrixInt: the matrix

Examples

m = EigenMatrixInt(3,3)
print(Gismo.rows(m))
# output
3
source
Gismo.rows — Method

Returns the number of rows in the matrix.

Arguments

  • object::EigenMatrix: the matrix

Examples

m = EigenMatrix(3,3)
print(Gismo.rows(m))
# output
3
source
Gismo.setZero! — Method

Sets all the elements of the matrix to zero.

Arguments

  • object::EigenMatrixInt: the matrix
source
Gismo.setZero! — Method

Sets all the elements of the matrix to zero.

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.toMatrix — Method

Returns the matrix as a Julia matrix (transfers ownership).

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.toMatrixInt — Method

Returns the matrix as a Julia matrix (transfers ownership).

Arguments

  • object::EigenMatrixInt: the matrix
source
Gismo.toVector — Method

Returns the matrix as a Julia vector (transfers ownership).

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.toVectorInt — Method

Returns the matrix as a Julia vector (transfers ownership).

Arguments

  • object::EigenMatrixInt: the matrix
source