Program Listing for File dense/scalar/base.h#
↰ Return to documentation for file (oti/dense/scalar/base.h)
#ifndef OTI_DENSE_SCALAR_BASE_H
#define OTI_DENSE_SCALAR_BASE_H
// ----------------------------------------------------------------------------------------------------
// ------------------------------------ DECLARATIONS ------------------------------------------
// ----------------------------------------------------------------------------------------------------
// to add to c_otilib.pxd
/**************************************************************************************************/
otinum_t oti_get_tmp( ndir_t ntmp, ord_t order, bases_t nbases, dhelpl_t dhl);
otinum_t oti_get_rtmp( ndir_t ntmp, ord_t order, bases_t nbases, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
void oti_trunc_ssum(otinum_t* num1,
ord_t ord, otinum_t* res, dhelpl_t dhl );
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
void oti_trunc_mul(otinum_t* num1, ord_t ord1,
otinum_t* num2, ord_t ord2,
otinum_t* res, dhelpl_t dhl );
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
void oti_trunc_smul_real(coeff_t a, ord_t ord, otinum_t* num, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
void oti_setIm_IdxOrd( coeff_t a, imdir_t idx, ord_t order, otinum_t* num, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
coeff_t oti_get( imdir_t idx, ord_t order, otinum_t* num, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
coeff_t oti_get_deriv( imdir_t idx, ord_t order, otinum_t* num, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
otinum_t oti_createZero( bases_t nbases, ord_t order, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
otinum_t oti_createEmpty( bases_t nbases, ord_t order, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
otinum_t oti_init( void );
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
otinum_t oti_copy(otinum_t* num, dhelpl_t dhl);
void oti_copy_to( otinum_t* num, otinum_t* res, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
void oti_setup(otinum_t* num, bases_t nbases, ord_t order, dhelpl_t dhl );
/**************************************************************************************************/
void oti_setFromReal( coeff_t a, otinum_t* num, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
void oti_print( otinum_t* num, dhelpl_t dhl);
// ----------------------------------------------------------------------------------------------------
/**************************************************************************************************/
void oti_free( otinum_t* num );
// ----------------------------------------------------------------------------------------------------
#endif