example/js/svg.js
function stringToMatrix(source) {
  // remove matrix wrapper and split to individual numbers
  source = source
    .replace(SVG.regex.whitespace, '')
    .replace(SVG.regex.matrix, '')
    .split(SVG.regex.matrixElements)

  // convert string values to floats and convert to a matrix-formatted object
  return arrayToMatrix(
    SVG.utils.map(source, function(n) {
      return parseFloat(n)
    })
  )
}
function stringToMatrix(source) {
  // remove matrix wrapper and split to individual numbers
  source = source
    .replace(SVG.regex.whitespace, '')
    .replace(SVG.regex.matrix, '')
    .split(SVG.regex.matrixElements)

  // convert string values to floats and convert to a matrix-formatted object
  return arrayToMatrix(
    SVG.utils.map(source, function(n) {
      return parseFloat(n)
    })
  )
}
function stringToMatrix ( source ) { // remove matrix wrapper and split to individual numbers source = source . replace ( SVG . regex . whitespace , '' ) . replace ( SVG . regex . matrix , '' ) . split ( SVG . regex . matrixElements ) // convert string values to floats and convert to a matrix-formatted object return arrayToMatrix ( SVG . utils . map ( source , function ( n ) { return parseFloat ( n ) } ) ) }
Convert string to matrix
Convert string to matrix