SimpleMatrixFriends (functions)


siconos.kernel.gemmtranspose(double a, array_like (np.float64, 2D) A, array_like (np.float64, 2D) B, double b, array_like (np.float64, 2D) C) → None[source]

gemmtranspose(a, A, B, b, C) computes C = a*transpose(A)*transpose(B) + b*C This function wrapped blas gemm through boost bindings.

Reserved to dense matrices and vectors.

Parameters:
  • a – a double
  • A – a SiconosMatrix
  • B – a SiconosMatrix
  • b – a double
  • C – a SiconosMatrix

siconos.kernel.gemvtranspose(double a, array_like (np.float64, 2D) A, array_like (np.float64, 1D) x, double b, array_like (np.float64, 1D) y) → None[source]

gemvtranspose(a, A, x, b, y) computes y = a*transpose(A)*x + b*y This function wrapped blas gemv through boost bindings.

Reserved to dense matrices and vectors.

Parameters:
  • a – a double
  • A – a SiconosMatrix
  • x – a SiconosVector
  • b – a double
  • y – a SiconosVector

siconos.kernel.matrix_pow(array_like (np.float64, 2D) A, int e) -> array_like (np.float64, 2D)[source]

compute the power of the matrix (!)

Parameters:
  • A – a SimpleMatrix
  • e – the exponent (an unsigned int)
Returns:

a SimpleMatrix