Skip to content
Snippets Groups Projects
Select Git revision
  • d564d832dd63faea68e9fba018e0d38d1c97c4ad
  • master default
  • nlf-fixes
  • newton-quadratic-equation-solver
  • nlf-fixes-r
  • nls-fixes
  • sep-fixes
  • sep
  • use-dprior
  • ep-sparse
  • rebase-1
  • parfor
  • reset-seed-in-unit-tests
  • remove-persistent-variables
  • nonlinear-filter-fixes
  • pac-mce-with-composite-target
  • 6.x
  • dprior
  • covariance-quadratic-approximation
  • benchmark-ec
  • kalman_mex
  • 5.5
  • 5.4
  • 5.3
  • 5.2
  • 5.1
  • 5.0
  • 5.0-rc1
  • 4.7-beta3
  • 4.7-beta2
  • 4.7-beta1
  • 4.6.4
  • 4.6.3
  • 4.6.2
  • 4.6.1
  • 4.6.0
  • 4.6.0-rc2
  • 4.6.0-rc1
  • 4.6-beta1
  • 4.5.7
  • 4.5.6
41 results

SymbolList.cc

Blame
  • Forked from Dynare / dynare
    Source project has a limited visibility.
    lzipencode.m 1.14 KiB
    function varargout = lzipencode(varargin)
    %
    % output = lzipencode(input)
    %    or
    % [output, info] = lzipencode(input)
    %
    % Compress a string or a numerical array using LZip-compression
    %
    % This function depends on the ZMat toolbox (http://github.com/fangq/zmat)
    %
    % authors:Qianqian Fang (q.fang <at> neu.edu)
    %
    % input:
    %      input: the original data, can be a string, a numerical vector or array
    %
    % output:
    %      output: the compressed byte stream stored in a uint8 vector
    %      info: (optional) a struct storing the metadata of the input, see "help zmat" for details
    %
    % examples:
    %      [bytes, info]=lzipencode(eye(10));
    %      orig=lzipdecode(bytes,info);
    %
    % license:
    %     BSD or GPL version 3, see LICENSE_{BSD,GPLv3}.txt files for details 
    %
    % -- this function is part of JSONLab toolbox (http://iso2mesh.sf.net/cgi-bin/index.cgi?jsonlab)
    %
    
    if(nargin==0)
        error('you must provide at least 1 input');
    end
    
    if(exist('zmat','file')==2 || exist('zmat','file')==3)
        [varargout{1:nargout}]=zmat(varargin{1}, 1,'lzip',varargin{2:end});
        return;
    else
        error('you must install ZMat toolbox to use this feature: http://github.com/fangq/zmat')
    end