IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 13, 2007, 4:36:28 PM (19 years ago)
Author:
magnier
Message:

changing p_psVectorBinDisect to psVectorBinaryDisect, adding psVectorBinaryDisectResult

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/math/psMathUtils.h

    r11248 r12434  
    66 * @author GLG, MHPCC
    77 *
    8  * @version $Revision: 1.4 $ $Name: not supported by cvs2svn $
    9  * @date $Date: 2007-01-23 22:47:23 $
     8 * @version $Revision: 1.5 $ $Name: not supported by cvs2svn $
     9 * @date $Date: 2007-03-14 02:36:28 $
    1010 * Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
    1111 */
     
    2525#include "psPolynomial.h"
    2626
     27typedef enum {
     28    PS_BINARY_DISECT_PASS,
     29    PS_BINARY_DISECT_OUTSIDE_RANGE,
     30    PS_BINARY_DISECT_INVALID_INPUT,
     31    PS_BINARY_DISECT_INVALID_TYPE,
     32} psVectorBinaryDisectResult;
     33
    2734/** Performs a binary disection on a monotonically non-decreasing vector.
    2835 *  Searches through an array of data for a specified value.
     
    3037 *  @return psS32    corresponding index number of specified value
    3138 */
    32 psS32 p_psVectorBinDisect(
     39psS32 psVectorBinaryDisect(
     40    psVectorBinaryDisectResult *status,
    3341    const psVector *bins,               ///< Array of non-decreasing values
    3442    const psScalar *x                   ///< Target value to find
Note: See TracChangeset for help on using the changeset viewer.