func DTrimvLowerTransA(X, A []float64, unit bool, incX, ldA, N, NB int) { var Xv C.mvec_t var Am C.mdata_t Xv.md = (*C.double)(unsafe.Pointer(&X[0])) Xv.inc = C.int(incX) Am.md = (*C.double)(unsafe.Pointer(&A[0])) Am.step = C.int(ldA) var flags Flags = LOWER | TRANSA if unit { flags |= UNIT } C.dmvec_trid_unb( (*C.mvec_t)(unsafe.Pointer(&Xv)), (*C.mdata_t)(unsafe.Pointer(&Am)), C.int(flags), C.int(N)) }
// blas TRMV; unblocked func DTrimvUnblkMV(X, A []float64, flags Flags, incX, ldA, N int) { var Xv C.mvec_t var Am C.mdata_t if A == nil || X == nil { return } Xv.md = (*C.double)(unsafe.Pointer(&X[0])) Xv.inc = C.int(incX) Am.md = (*C.double)(unsafe.Pointer(&A[0])) Am.step = C.int(ldA) C.dmvec_trid_unb( (*C.mvec_t)(unsafe.Pointer(&Xv)), (*C.mdata_t)(unsafe.Pointer(&Am)), C.int(flags), C.int(N)) }