Refine by Content Type

Refine by Product

Refine by Time Frame

image thumbnail

updated 8 months ago

LOADFIXNAMES loads a mat file, fixing invalid names by James Tursa

Loads a mat file into the caller's workspace, fixing invalid variable and field names. (load, mat, invalid)

loadfixnames(varargin)

savebadnames(varargin)

image thumbnail

updated 1 year ago

mexPutVariableSharedDataCopy by James Tursa

This C routine puts a shared data copy of a variable into a workspace from a mex routine (mex, mexputvariable, mexputvariablesharedd...)

mexPutVariableSDCtest(varargin)

image thumbnail

updated 1 year ago

SPARSECLEAN - Efficiently cleans a sparse matrix of small values or nan by James Tursa

SPARSECLEAN cleans a double sparse matrix of small or nan values or values within a range. (sparse, clean, nan)

sparseclean(varargin)

image thumbnail

updated 2 years ago

Fortran 95 Interface to MATLAB API with extras! by James Tursa

This is the one you have been waiting for, a clean interface using assumed shape Fortran pointers. (fortran 95, fortran, 95)

MatlabAPI_build_cvf61.m

MatlabAPI_build_cvf66.m

MatlabAPI_build_intelf10msvs2005.m

image thumbnail

updated 3 years ago

UNINIT - Create an uninitialized variable (like ZEROS but faster) by James Tursa

UNINIT is similar to ZEROS, except UNINIT returns uninitialized values instead of zero values. (uninit, zeros, ones)

uninit(varargin)

image thumbnail

updated 3 years ago

typecast and typecastx C-mex functions by James Tursa

typecast and typecastx are mex functions that mimic the MATLAB typecast function with extensions (external interface, typecast, cast)

typecast(varargin)

typecastx(varargin)

image thumbnail

updated 3 years ago

mxGetPropertyPtr C-mex function by James Tursa

Fast memory efficient alternative to the API function mxGetProperty. (mxgetproperty, mxgetpropertyptr, object)

GetPropertyPtrx(varargin)

GetPropertyPtr(obj,ix,propname)

mxGetPropertyPtr_class

image thumbnail

updated 3 years ago

MTIMESX - Fast Matrix Multiply with Multi-Dimensional Support by James Tursa

Beats MATLAB 300% - 400% in some cases ... really! (mtimes, multiply, speed)

mtimesx.m

mtimesx_build(x)

mtimesx_sparse(a,transa,b,transb)

image thumbnail

updated 4 years ago

mpower2 - A faster matrix power function. by James Tursa

mpower2 evaluates matrix to an integer power faster than the MATLAB built-in function mpower. (mpower, matrix, power)

mpower2(X,p)

image thumbnail

updated 4 years ago

polyvalm2 - A faster matrix polynomial evaluator by James Tursa

polyvalm2 evaluates a polynomial with a matrix argument faster than the MATLAB function polyvalm. (polyvalm, mpower, polynomial)

polyvalm2(p,X)

image thumbnail

updated 4 years ago

num2vpi - Converts input exactly into vpi by James Tursa

Converts double inputs larger than 2^53-1, or char inputs with exponents, exactly into vpi. (vpi, variable, precision)

num2vpi(x)

image thumbnail

updated almost 5 years ago

Fortran mex routine mxGetClassName by James Tursa

A drop-in replacement for the TMW Fortran API function mxGetClassName routine that does not work. (mex, mxgetclassname, fortran)

image thumbnail

updated almost 5 years ago

num2strexact (exact version of num2str) by James Tursa

num2strexact does exact conversion of number to string based on IEEE floating point bit pattern (num2strexact, num2str, str2num)

num2strexact(varargin)

image thumbnail

updated almost 5 years ago

swapbytes C-mex function by James Tursa

swapbytes(X1,X2,...) reverses byte ordering of each element, little-endian values to/from big-endian (external interface, swapbytes, reverse byte ordering)

swapbytes(varargin)

image thumbnail

updated almost 5 years ago

Moon Position by James Tursa

moonpos calculates moon position accurate to 10 arcsec. Based on Astronomical Algorithms, Meeus (aerospace, moon, lunar)

moonpos(varargin)

moonpos_examples.m

image thumbnail

updated almost 5 years ago

IEEE 754r Half Precision floating point converter by James Tursa

Converts MATLAB or C variables to/from IEEE 754r Half Precision floating point bit pattern. (half precision, ieee 754r, ieee 754)

halfprecision(varargin)

halfprecisionmax

halfprecisionmin

image thumbnail

updated almost 6 years ago

Count "on", "off", or calculate simple "parity" bits of input by James Tursa

Three functions to calculate the number of "on", "off", or simple "parity" bits of input (coding theory, information theory, onbits)

offbits(varargin)

onbits(varargin)

paritybits(varargin)

image thumbnail

updated almost 6 years ago

Fortran mex: mxCopyCharacterToPtr and mxCopyPtrToCharacter by James Tursa

Drop in replacements for the Mathworks supplied functions of the same names that do not work. (external interface, mxcopycharactertoptr, mxcopyptrtocharacter)

image thumbnail

updated 6 years ago

Fortran mxCreateLogicalSparseMatrix by James Tursa

The Fortran version of the mxCreateSparseLogicalMatrix function for mex and engine apps (external interface, mex, logical)

image thumbnail

updated 6 years ago

bwmorph c-mex example by James Tursa

This file is the c-mex equivalent of the example given in the bwmorph.m file comments. (tutorial, example, bwmorph)

bwmorph_example.m

image thumbnail

updated 6 years ago

fulltosparse (Fortran version) by James Tursa

This is a Fortran version of The Mathworks supplied fulltosparse.c, with realloc capability. (external interface, fulltosparse, sparse)

image thumbnail

updated 6 years ago

bsxarg by James Tursa

bsxarg returns the physically expanded arrays associated with bsxfun (matrices, bsxarg, bsxfun)

image thumbnail

updated 6 years ago

bsxfun by James Tursa

bsxfun is a functional substitute for MATLAB intrinsic of the same name (matrices, bsxfun, bsxarg)

image thumbnail

updated 6 years ago

reshape0, reshaping with padding or truncating by James Tursa

A c-mex routine for reshaping with padding or truncating (external interface, reshape0 reshape copy)

image thumbnail

updated 6 years ago

Fortran Logical mex functions by James Tursa

Fortran mex routines for converting logicals to/from MATLAB mxArray variables (external interface, mxcopyptrtological, mxcopylogicaltoptr)

image thumbnail

updated 6 years ago

engCallMATLAB (Fortran version) by James Tursa

engCallMATLAB is a Fortran routine giving engine equivalent of mexCallMATLAB function (external interface, engcallmatlab, mexcallmatlab)

compile_intel91(name)

engCallMATLAB.m

image thumbnail

updated 6 years ago

intbitcopy and uintbitcopy by James Tursa

Exact bit copy of variable into signed int__ or unsigned uint__ of same element size (external interface, integer, bit)

intbitcopy.m

uintbitcopy.m

image thumbnail

updated 6 years ago

engCallMATLAB by James Tursa

engCallMATLAB is a c routine giving engine equivalent of mexCallMATLAB function (external interface, engcallmatlab, mexcallmatlab)

compile_lcc(name)

engCallMATLAB.m

Contact us