Added matrix and vertex weight rb functions.