GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
typecast.cc File Reference
#include <algorithm>
#include <limits>
#include "mx-base.h"
#include "defun.h"
#include "error.h"
#include "errwarn.h"
#include "ovl.h"
#include "unwind-prot.h"

Go to the source code of this file.

Functions

template<typename ArrayType >
ArrayType do_bitpack (const boolNDArray &bitp)
 
template<typename ArrayType >
boolNDArray do_bitunpack (const ArrayType &array)
 
octave_value_list Fbitpack (const octave_value_list &args, int)
 
octave_value_list Fbitunpack (const octave_value_list &args, int)
 
octave_value_list Ftypecast (const octave_value_list &args, int)
 

Function Documentation

◆ do_bitpack()

template<typename ArrayType >
ArrayType do_bitpack ( const boolNDArray bitp)

Definition at line 313 of file typecast.cc.

References error(), n, and Array< T, Alloc >::numel().

◆ do_bitunpack()

template<typename ArrayType >
boolNDArray do_bitunpack ( const ArrayType &  array)

Definition at line 465 of file typecast.cc.

References n.

Referenced by Fbitunpack().

◆ Fbitpack()

octave_value_list Fbitpack ( const octave_value_list args,
int   
)

Definition at line 377 of file typecast.cc.

References error(), octave_value::is_undefined(), octave_value(), and print_usage().

◆ Fbitunpack()

◆ Ftypecast()

octave_value_list Ftypecast ( const octave_value_list args,
int   
)

Definition at line 162 of file typecast.cc.

References octave_value::islogical(), and print_usage().