gsMatrix

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

Function Documentation

Gismo.asMatrixMethod

Returns the matrix as a Julia matrix.

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.asVectorMethod

Returns the matrix as a Julia vector.

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.colsMethod

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.colsMethod

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.dataMethod

Returns a pointer to the data of the matrix.

Arguments

  • object::EigenMatrixInt: the matrix
source
Gismo.dataMethod

Returns a pointer to the data of the matrix.

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.rowsMethod

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.rowsMethod

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.toMatrixMethod

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

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.toMatrixIntMethod

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

Arguments

  • object::EigenMatrixInt: the matrix
source
Gismo.toVectorMethod

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

Arguments

  • object::EigenMatrix: the matrix
source
Gismo.toVectorIntMethod

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

Arguments

  • object::EigenMatrixInt: the matrix
source